cordova

Phonegap/Cordova facebook login not working when already connected

给你一囗甜甜゛ 提交于 2020-01-23 03:12:27
问题 I'm developing and HTML5/CSS/Javascript PhoneGap app that should work as native app for android and iOS and is compiled using the PhoneGap Build service. The app uses Facebook login. The login is done through the JAVASCRIPT Api. So I have this simple HTML page: <!DOCTYPE html> <head> <meta charset="utf-8" /> <meta name="format-detection" content="telephone=no" /> <meta name="msapplication-tap-highlight" content="no" /> <meta name="viewport" content="width=device-width, initial-scale=1.0,

Can HTML5 localStorage in Cordova/Phonegap app be synced to iCloud?

帅比萌擦擦* 提交于 2020-01-23 02:56:07
问题 I have a Phonegap/Cordova app that runs on iOS. It saves it's data into HTML5 localStorage. I'm trying to work out if it's possible to sync the localStorage data (using iCloud) to other iOS devices, and even OS X. From what I can see, in iOS localStorage is actually implemented as a SQLite database, which (when using Phonegap/Cordova) is written to the app's Documents directory: Documents/Backups/localstorage.appdata.db I also understand that there are three main ways of storing data in

iOS11 Cordova Angular 4 wrap breaking SecurityError: history.replaceState()

≯℡__Kan透↙ 提交于 2020-01-23 02:42:25
问题 I have an angular 4 application wrapped with cordova that was working perfectly fine before iOS11.1 Upgrading the phone to iOS11.1 I now receive the error Error: Uncaught (in promise): SecurityError (DOM Exception 18): Blocked attempt to use history.replaceState() to change session history URL from file:///var/containers/Bundle/Application/CE4A6135-633D-49B9-9A1D-28CBFF5AB832/MyAppName.app/www/index.html to file:///var/containers/Bundle/Application/CE4A6135-633D-49B9-9A1D-28CBFF5AB832

iOS app submission : invalid signature

时光怂恿深爱的人放手 提交于 2020-01-22 17:28:05
问题 I'm struggling with this issue for more than a week now, I've tried all I could find on Google with no luck. This is my first time trying to submit an app to the App Store, but I keep getting this email after each try: invalid Signature - Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level

Phonegap Facebook connect plugin settings

你说的曾经没有我的故事 提交于 2020-01-22 14:18:06
问题 I'm using phonegap plugin to connect to facebook this one : https://github.com/phonegap-build/FacebookConnect I'm confused about Facebook app settings, when I call FB.init() I get this error message: Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains. I edited Website with Facebook Login (site url) to : http://

Modify app assets using Phonegap's File API

旧街凉风 提交于 2020-01-22 14:05:47
问题 I worked on a phonegap application using html5 for a month. I handle offline JSON files using File API . It seems that the JSON files I store are automatically saved on /mnt/sdcard/ . The problem is, I find myself handling 3 files for each file I want. 1 st the file packaged with my app (js/products.js) 2 nd the remote file that sends me updates (http://website/remote_products.js) 3 rd the local file on sdcard I update with the remote data. ( /mnt/sdcard/updated-products.js ) Is it possible

jQuery ajax() POST to Slim PHP framework

匆匆过客 提交于 2020-01-22 12:57:48
问题 Using jquery mobile+phonegap, trying to POST to a Slim application, I have this code: $( document ).on( "vclick", "#test_form", function() { $.ajax({ type: "POST", url: "http://mydomain.com/slim/", crossDomain: true, beforeSend: function() { $.mobile.loading('show') }, complete: function() { $.mobile.loading('hide') }, data: {namec:$("#namec").val()}, dataType: 'json', success: function(response) { //console.error(JSON.stringify(response)); alert(response); }, error: function() { //console

How to check cordova android version of a cordova/phonegap project?

浪尽此生 提交于 2020-01-22 04:19:30
问题 I have received a Security Alert from Google this week that tells me to upgrade my android version of cordova app. The email from google is as below - This is a notification that your --apps ids--, is built on a version of Apache Cordova that contains security vulnerabilities. This includes a high severity cross-application scripting (XAS) vulnerability. Under certain circumstances, vulnerable apps could be remotely exploited to steal sensitive information, such as user login credentials. You

Combining Framework 7 & Bootstrap 4

纵然是瞬间 提交于 2020-01-22 02:37:10
问题 I have completed the project for the mobile website using html and bootstrap 4 and now I will work on the mobile version using framework 7. The problem is it possible to move my code into framework 7 and use bootstrap 4 in it? or is it not efficient and should I re-code it in pure framework 7? --| using google translate |-- 回答1: Yes. It is possible to combine Bootstrap 4 with Framework7. F7 can work with just about any css, be it your own custom styles, or Bootstrap 4. 来源: https:/

How to run only one instance of cordova inappbrowser in android

倖福魔咒の 提交于 2020-01-22 02:35:23
问题 I have a link that opens in the inappbrowser and when I proceed with the webpage that is loaded in the inappbrowser , any other link should not get opened if one link is already running in inappbrowser . Whereas when I click other link, it loads over the previous running link and I clearly do not want that Any help is much appreciated! Here is the source code: universalLinks.subscribe(null, function (eventData) { ref = cordova.InAppBrowser.open(eventData.url, '_blank', 'location=yes');