Closed JacobCorlett closed 7 years ago
Hello, I am having problems with this on ios. Basically as soon as any UAirship api is trigged in the JS on iPhone it freezes / is broken.
at this point i've just added this in to the code nothing else.
UAirship.setUserNotificationsEnabled(true, function (enabled) { alert("User notifications are enabled! Fire away!"); });
It appears to work as expected on Android.
Config is basically : PhoneGap (iOS / Android / Windows) cli-6.3.0 (4.2.0 / 5.2.1 / 4.4.1)
<preference name="loadUrlTimeoutValue" value="700000" /> <preference name="orientation" value="pertrait" /> <preference name="webviewbounce" value="false" /> <preference name="DisallowOverscroll" value="true" /> <plugin name="cordova-plugin-intercom" version="3.0.17" source="npm" /> <plugin name="cordova-plugin-whitelist" source="npm" /> <plugin name="cordova-plugin-statusbar" source="npm" /> <plugin name="cordova-plugin-vibration" source="npm" /> <plugin name="urbanairship-cordova" source="npm" /> <preference name="StatusBarStyle" value="lightcontent" /> <platform name="ios"> <preference name="deployment-target" value="8.0" /> </platform> <platform name="android"> <preference name="android-minSdkVersion" value="16" /> </platform> <!-- Urban Airship app credentials --> <preference name="com.urbanairship.production_app_key" value="removed" /> <preference name="com.urbanairship.production_app_secret" value="removed" /> <preference name="com.urbanairship.development_app_key" value="removed" /> <preference name="com.urbanairship.development_app_secret" value="removed" /> <!-- Required for Android. --> <preference name="com.urbanairship.gcm_sender" value="removed" /> <!-- If the app is in production or not --> <preference name="com.urbanairship.in_production" value="true" /> <!-- Optional config values --> <!-- Enable push when the application launches --> <preference name="com.urbanairship.enable_push_onlaunch" value="true" /> <!-- Enable Analytics when the application launches --> <!-- Warning: Features that depend on analytics being enabled may not work properly if analytics is disabled (reports, location segmentation, region triggers, push to local time). --> <preference name="com.urbanairship.enable_analytics" value="true" /> <!-- Override the Android notification icon --> <preference name="com.urbanairship.notification_icon" value="ic_notification" /> <!-- Override the Android notification large icon --> <preference name="com.urbanairship.notification_large_icon" value="ic_notification_large" /> <!-- Override the Android notification sound (sound file should be in res/raw)--> <preference name="com.urbanairship.notification_sound" value="push" /> <!-- Specify the notification accent color for Android API 21+ (Lollipop) --> <preference name="com.urbanairship.notification_accent_color" value="#0000ff" /> <!-- Clear the iOS badge on launch --> <preference name="com.urbanairship.clear_badge_onlaunch" value="true" /> <!-- Enables/disables auto launching the message center when the corresponding push is opened. --> <preference name="com.urbanairship.auto_launch_message_center" value="true" /> <!-- iOS 10 alert foreground notification presentation option --> <preference name="com.urbanairship.ios_foreground_notification_presentation_alert" value="true"/> <!-- iOS 10 badge foreground notification presentation option --> <preference name="com.urbanairship.ios_foreground_notification_presentation_badge" value="true"/> <!-- iOS 10 sound foreground notification presentation option --> <preference name="com.urbanairship.ios_foreground_notification_presentation_sound" value="true"/> </widget>
Hi @JacobCorlett , can you update to cordova-cli 6.4.0 and cordova-ios 4.3.0 please?
Thanks Sorted.
Glad to hear its sorted out.
Hello, I am having problems with this on ios. Basically as soon as any UAirship api is trigged in the JS on iPhone it freezes / is broken.
at this point i've just added this in to the code nothing else.
It appears to work as expected on Android.
Config is basically : PhoneGap (iOS / Android / Windows) cli-6.3.0 (4.2.0 / 5.2.1 / 4.4.1)