sample-flashlight does not work for iphone

4 posts, 0 answers
  1. huseyin celik
    huseyin celik avatar
    25 posts
    Member since:
    Aug 2012

    Posted 14 Mar 2015 Link to this post

      i down load this code 

    https://github.com/Icenium/sample-flashlight/tree/master/sample-flashlight  

    to my web site http://www.awaspi.com/a/index.html  
    it is not work with desktop browser..it is ok
    but when i opened http://www.awaspi.com/a/index.html this url with iphone
     there is a button "Turn ON Flashlight"
    i click that it does not do any thing

    i want to access device flashlight and handle it and open it automatically 
  2. huseyin celik
    huseyin celik avatar
    25 posts
    Member since:
    Aug 2012

    Posted 14 Mar 2015 in reply to huseyin celik Link to this post

    i export telerik flashlight sample and this is not work for iphone

    https://platform.telerik.com/#workspace/6d8ebe7e-af24-4fd9-9fad-d8919ffe43ee/appbuilder/651c45c9-45b8-466d-be8b-13876ea12bc1
  3. huseyin celik
    huseyin celik avatar
    25 posts
    Member since:
    Aug 2012

    Posted 15 Mar 2015 in reply to huseyin celik Link to this post

    here is my question
    is fşashlight plugin support iphone 4(IOS 8)

    http://community.phonegap.com/nitobi/topics/i_can_not_use_plug_flashlight#reply_15469077 

    can i do as in attached image with that plugin

  4. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 18 Mar 2015 Link to this post

    Hello Huseyin ,

    Straight to your questions:
    • "but when i opened http://www.awaspi.com/a/index.html this url with iphone
       there is a button "Turn ON Flashlight"
      i click that it does not do any thing

      i want to access device flashlight and handle it and open it automatically 
      "

      This is so, as this sample is developed to run as a hybrid application directly on the phone and not to be deployed on a web page and later be accessed from the device. In other words, it is expected for the flashlight not be activated, because the web page, where the button resides, does not have access to the its native api.

    • "i export telerik flashlight sample and this is not work for iphone"

      If you have successfully imported the Flashlight sample inside your Telerik Platform account, you will then need to deploy the application on actual device as an application package. This is important, as custom Cordova plugins are only supported on real devices and not in AppBuilder Companion apps. So, to deploy the sample on your iPhone as an application package you will need to:
       - Configure proper Apple provisioning. You can check these articles from our online documentation.
       - Build and deploy the app as an application package. Here is the link with the steps for this.
       - Try if the flashlight will work on the phone as expected.

    • "is fşashlight plugin support iphone 4(IOS 8)

      can i do as in attached image with that plugin
      "

      Yes, the flashlight plugin is fully supported on iPhone 4 devices. And yes, with you can turn on/off the device's flashlight.

    I hope this helps.

    Regards,
    Kaloyan
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
Back to Top