-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
my android app works well in ios does not pass the line of code var bgGeo = window.BackgroundGeolocation. #108
Comments
Show me XCode logs of your app booting. |
1030 22:48:25.434045 1 commandlineflags.cc:1503] Ignoring RegisterValidateFunction() for flag pointer 0x103723d00: no flag found at that address |
@christocracy do you see my log? |
I just booted a fresh Ionic 1 app using Are you sure you don't have Javascript errors? |
@christocracy I am using this version: [email protected] . Do you remember that you recommended it to me? |
Yes, and I published |
I will try that version, thanks.. |
same problem with 2.14.0, when "var bgGeo = window.BackgroundGeolocation;" does not advance from that line of code. I tried it on an iphone 8 using simulator, xcode |
Open the Safari developer console for your app. In the Javascript console, get a reference to the plugin:
Is the object there? |
my android app works well in ios does not pass the line of code (IONIC 1)
In android the code works perfect, but in ios it does not work. Following up on the code, I find that it does not progress from this line. I'm testing it in a xcode simulator directly.
oback.iniBackground = function() { console.log("enter") console.log( window.BackgroundGeolocation) var bgGeo = window.BackgroundGeolocation; console.log("not
enter")``
this shows:
"enter" {"LOG_LEVEL_OFF":0,"LOG_LEVEL_ERROR":1,"LOG_LEVEL_WARNING":2,"LOG_LEVEL_INFO":3,"LOG_LEVEL_DEBUG":4,"LOG_LEVEL_VERBOSE":5,"DESIRED_ACCURACY_NAVIGATION":-2,"DESIRED_ACCURACY_HIGH":-1,"DESIRED_ACCURACY_MEDIUM":10,"DESIRED_ACCURACY_LOW":100,"DESIRED_ACCURACY_VERY_LOW":1000,"DESIRED_ACCURACY_THREE_KILOMETER":3000,"AUTHORIZATION_STATUS_NOT_DETERMINED":0,"AUTHORIZATION_STATUS_RESTRICTED":1,"AUTHORIZATION_STATUS_DENIED":2,"AUTHORIZATION_STATUS_ALWAYS":3,"AUTHORIZATION_STATUS_WHEN_IN_USE":4,"NOTIFICATION_PRIORITY_DEFAULT":0,"NOTIFICATION_PRIORITY_HIGH":1,"NOTIFICATION_PRIORITY_LOW":-1,"NOTIFICATION_PRIORITY_MAX":2,"NOTIFICATION_PRIORITY_MIN":-2,"ACTIVITY_TYPE_OTHER":1,"ACTIVITY_TYPE_AUTOMOTIVE_NAVIGATION":2,"ACTIVITY_TYPE_FITNESS":3,"ACTIVITY_TYPE_OTHER_NAVIGATION":4,"logger":{}} 2018-10-30 22:48:28.800066-0500 TIN[5860:44197]
on ios:
cordova-android-play-services-gradle-release 1.4.4 "cordova-android-play-services-gradle-release"
cordova-background-geolocation-lt 2.14.0-beta.2 "BackgroundGeolocation"
cordova-plugin-background-fetch 5.4.1 "CDVBackgroundFetch"
cordova-plugin-badge 0.8.7 "Badge"
cordova-plugin-camera 4.0.3 "Camera"
cordova-plugin-cocoalumberjack 0.0.4 "CocoaLumberjack"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-facebook4 2.5.0 "Facebook Connect"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-googlemaps 2.5.0-beta-20181027-1852 "cordova-plugin-googlemaps"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 1.2.1 "cordova-plugin-ionic-webview"
cordova-plugin-local-notification 0.9.0-beta.2 "LocalNotification"
cordova-plugin-request-location-accuracy 2.2.3 "Request Location Accuracy"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova.plugins.diagnostic 4.0.10 "Diagnostic"
config.xml
.
.
.
thanks, I hope your help.
The text was updated successfully, but these errors were encountered: