cordova-3

Check if a URL scheme is registered on iOS or Android in Cordova

谁都会走 提交于 2021-02-10 07:23:02
问题 I want to check if a particular app is installed and if it is installed, invoke it. AFAIK, the way to do it is to check if the custom url scheme of the app is registered and use that url to launch the app. Is there a way for me to do this in my Cordova app? To be very specific I want to check if the Google Maps application is installed on iOS and if it is, launch it with its custom url else show the default Apple maps. This url : https://developers.google.com/maps/documentation/ios/urlscheme

Check if a URL scheme is registered on iOS or Android in Cordova

陌路散爱 提交于 2021-02-10 07:22:57
问题 I want to check if a particular app is installed and if it is installed, invoke it. AFAIK, the way to do it is to check if the custom url scheme of the app is registered and use that url to launch the app. Is there a way for me to do this in my Cordova app? To be very specific I want to check if the Google Maps application is installed on iOS and if it is, launch it with its custom url else show the default Apple maps. This url : https://developers.google.com/maps/documentation/ios/urlscheme

How to catch exit app event?

与世无争的帅哥 提交于 2021-01-27 00:35:56
问题 Hy! I need to catch the exit app event in my phonegap application. Actually I want to trigger a looseLife() function if the player tries to cheat and exit the app with minimize and exit from task manager while he already started a new lvl. If he exit it correctly, by pressing the back button it works fine. I tried onunload or onbeforeunload but these functions get called only if I close the app normally, without minimizing it and closing it from task manager. The pause function also doesn't

How to catch exit app event?

无人久伴 提交于 2021-01-27 00:33:58
问题 Hy! I need to catch the exit app event in my phonegap application. Actually I want to trigger a looseLife() function if the player tries to cheat and exit the app with minimize and exit from task manager while he already started a new lvl. If he exit it correctly, by pressing the back button it works fine. I tried onunload or onbeforeunload but these functions get called only if I close the app normally, without minimizing it and closing it from task manager. The pause function also doesn't

Retrieving source code of site in InAppBrowser

孤人 提交于 2020-05-28 04:03:46
问题 When opening a website in the InAppBrowser, is there a way to retrieve the source code of the website? This is needed for a PhoneGap app for iOs. I was thinking either by a javascript injection that could read and return the source, or by writing it in objective c and make a plugin - if either of these options would be possible. 回答1: I think you can do that by injecting js script after page load event is fired in InAppBrowser. var code = 'javascript:alert("xxxxxxx")'; var ref = window.open(

Open a link in the default browser of a system with cordova 3 and jquery mobile

不羁岁月 提交于 2020-02-05 05:20:10
问题 Hi I'm working around with jquery mobile and cordova 3 on a android device. Everything works great except that I can't open links in the default browser or for example the maps application. I can open it with a inappbrowser plugin but I dont want to do that. I just want to open the links to websites with the default browser. I tried many things like here: Opening Link in System Browser in PhoneGap 3.3 on Android Open Links in Default Browser using Phonegap/Cordova But I saw that the answers

Offline Phonegap Build

橙三吉。 提交于 2020-02-04 07:03:55
问题 By means of an Adobe Phonegap account (https://build.phonegap.com/apps) I could create mobile apps using my web application for all types of mobile platforms like IOS, Android, Windows. But, for this to happen, I have to upload my project zip to cloud. Is it possible to create the apps (for all mobile platforms) offline , in my pc itself, without uploading my project zip to cloud? Is there any desktop application that does a similar job as build.phonegap.com? 回答1: Yes you can build your app

Offline Phonegap Build

好久不见. 提交于 2020-02-04 07:00:13
问题 By means of an Adobe Phonegap account (https://build.phonegap.com/apps) I could create mobile apps using my web application for all types of mobile platforms like IOS, Android, Windows. But, for this to happen, I have to upload my project zip to cloud. Is it possible to create the apps (for all mobile platforms) offline , in my pc itself, without uploading my project zip to cloud? Is there any desktop application that does a similar job as build.phonegap.com? 回答1: Yes you can build your app

Offline Phonegap Build

核能气质少年 提交于 2020-02-04 06:59:41
问题 By means of an Adobe Phonegap account (https://build.phonegap.com/apps) I could create mobile apps using my web application for all types of mobile platforms like IOS, Android, Windows. But, for this to happen, I have to upload my project zip to cloud. Is it possible to create the apps (for all mobile platforms) offline , in my pc itself, without uploading my project zip to cloud? Is there any desktop application that does a similar job as build.phonegap.com? 回答1: Yes you can build your app