- 
                Notifications
    
You must be signed in to change notification settings  - Fork 75
 
Description
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("notenter")`
`
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
<platform name="ios">
    <allow-intent href="itms:*" />
    <allow-intent href="itms-apps:*" />
    <icon height="57" src="resources/ios/icon/icon.png" width="57" />
    <icon height="114" src="resources/ios/icon/[email protected]" width="114" />
    <icon height="40" src="resources/ios/icon/icon-40.png" width="40" />
    <icon height="80" src="resources/ios/icon/[email protected]" width="80" />
    <icon height="120" src="resources/ios/icon/[email protected]" width="120" />
    <icon height="50" src="resources/ios/icon/icon-50.png" width="50" />
    <icon height="100" src="resources/ios/icon/[email protected]" width="100" />
    <icon height="60" src="resources/ios/icon/icon-60.png" width="60" />
    <icon height="120" src="resources/ios/icon/[email protected]" width="120" />
    <icon height="180" src="resources/ios/icon/[email protected]" width="180" />
    <icon height="72" src="resources/ios/icon/icon-72.png" width="72" />
    <icon height="144" src="resources/ios/icon/[email protected]" width="144" />
    <icon height="76" src="resources/ios/icon/icon-76.png" width="76" />
    <icon height="152" src="resources/ios/icon/[email protected]" width="152" />
    <icon height="167" src="resources/ios/icon/[email protected]" width="167" />
    <icon height="29" src="resources/ios/icon/icon-small.png" width="29" />
    <icon height="58" src="resources/ios/icon/[email protected]" width="58" />
    <icon height="87" src="resources/ios/icon/[email protected]" width="87" />
    <icon height="1024" src="resources/ios/icon/icon-1024.png" width="1024" />
    <splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" />
    <splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" />
    <splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" />
    <splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" />
    <splash height="1536" src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" />
    <splash height="2048" src="resources/ios/splash/Default-Landscape@~ipadpro.png" width="2732" />
    <splash height="768" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" />
    <splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" />
    <splash height="2732" src="resources/ios/splash/Default-Portrait@~ipadpro.png" width="2048" />
    <splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" />
    <splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" />
    <splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" />
    <splash height="2732" src="resources/ios/splash/Default@2x~universal~anyany.png" width="2732" />
    <edit-config file="*-Info.plist" mode="merge" target="BACKGROUND_MODE_LOCATION">
                <string></string>
    </edit-config>
    <edit-config file="*-Info.plist" mode="merge" target="LOCATION_ALWAYS_AND_WHEN_IN_USE_USAGE_DESCRIPTION">
                <string>¿¿Permitir a "TIN" uso constante de tu ubicación para avisarte cuando estes cerca de ofertas??</string>
    </edit-config>
    <edit-config file="*-Info.plist" mode="merge" target="LOCATION_ALWAYS_USAGE_DESCRIPTION">
                <string>Es necesario usar tu ubicación para avisarte cuando estes cerca de ofertas</string>
    </edit-config>
    <edit-config file="*-Info.plist" mode="merge" target="MOTION_USAGE_DESCRIPTION">
                <string>El uso del acelerómetro aumenta la eficiencia de la batería al alternar de manera inteligente el seguimiento de la ubicación solo cuando se detecta que el dispositivo se está moviendo</string>
    </edit-config>
    <edit-config file="*-Info.plist" mode="merge" target="NSLocationAlwaysUsageDescription">
        <string>¿Permitir a "**" el acceso a tu ubicación mientras estes usando esta app?</string>
    </edit-config>
    <edit-config file="*-Info.plist" mode="merge" target="NSLocationWhenInUseUsageDescription">
        <string>Tu actual ubicación será mostrada en el mapa, de acuerdo a tu posición serán mostradas tiendas cercanas</string>
    </edit-config>
    <edit-config file="*-Info.plist" mode="merge" target="NSCameraUsageDescription">
        <string>Se accederá a tu cámara para obtener una fotografía para actualizar tu perfil</string>
    </edit-config>
    <edit-config file="*-Info.plist" mode="merge" target="NSPhotoLibraryUsageDescription">
        <string>Se accederá a tu galeria para obtener una fotografía para actualizar tu perfil</string>
    </edit-config>
</platform>
.
.
.
thanks, I hope your help.