- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i am trying to create a flash light but the code is not working. i am testing on iphone 4s. ios 9. i am using this script....
$(document).on("click", ".uib_w_3", function(evt) { /* your code goes here */ window.plugins.flashlight.available(function(isAvailable) { if (isAvailable) { window.plugins.flashlight.toggle(function(){ alert("Success"); }, function(){ alert("Failure"); }); } else { alert("Flashlight not available on this device"); } }); }); }
kindly help me to resolve. Thanks in advance.
- Tags:
- HTML5
- Intel® XDK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How are you testing this? It will not work in App Preview (test tab) or in the Emulate tab, because you are using a third-party plugin. To test this on an iOS device you'll need to build the app and run it on a real device. For Android, you can use the Debug tab. See this doc page > https://software.intel.com/en-us/xdk/docs/intel-xdk-debug-and-test-overview
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I recommend submitting an issue request on the plugin developer's Github page . This plugin may have a limitation per device and operating systems.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How are you testing this? It will not work in App Preview (test tab) or in the Emulate tab, because you are using a third-party plugin. To test this on an iOS device you'll need to build the app and run it on a real device. For Android, you can use the Debug tab. See this doc page > https://software.intel.com/en-us/xdk/docs/intel-xdk-debug-and-test-overview
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I recommend submitting an issue request on the plugin developer's Github page . This plugin may have a limitation per device and operating systems.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page