This is a migrated thread and some comments may be shown as answers.

sample-flashlight does not work for iphone

3 Answers 64 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
huseyin celik
Top achievements
Rank 1
huseyin celik asked on 14 Mar 2015, 10:58 AM
  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 

3 Answers, 1 is accepted

Sort by
0
huseyin celik
Top achievements
Rank 1
answered on 14 Mar 2015, 12:16 PM
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
0
huseyin celik
Top achievements
Rank 1
answered on 15 Mar 2015, 11:49 PM
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

0
Kaloyan
Telerik team
answered on 18 Mar 2015, 01:41 PM
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.

 
Tags
General Discussion
Asked by
huseyin celik
Top achievements
Rank 1
Answers by
huseyin celik
Top achievements
Rank 1
Kaloyan
Telerik team
Share this question
or