Chris6743166
Posts: 1
Joined: Tue Mar 18, 2014 11:50 am

Libraries v5.1 and "cordova-plugin-ionic-webview" plugin - iOS problems

Hi,

I have a couple of outstanding issues with my JQM having upgraded the libraries to v5.1 and enabled the "cordova-plugin-ionic-webview" plugin (to support iOS 13):

  1. When registering for push notifications via a REST service, my app has always used this to interpret the response:

    codevar responseTxt = JSON.stringify(jqXHR);
    /code
    coderesponseTxt = JSON.parse(responseTxt);
    /code
    coderesponseTxt = responseTxt.status;
    /code

    Until now, this has always worked. However, since the upgrade I'm now getting this response:

    coderesponseTxt: undefined
    /code

    Can you update me on how to interpret a REST service response following the upgrade?

  2. There is a separate problem specific to iOS 12. When pressing the main navigation buttons, the screen simply goes white and then the home screen reloads. How can I fix that problem with iOS 12 and (presumably) earlier versions of iOS?

    Many thanks,

    Chris

    The app is called Hooson (6d0f42e4-32d0-4e03-b243-3ba6da40e4cc) and is shared with support.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Libraries v5.1 and "cordova-plugin-ionic-webview" plugin - iOS problems

Hello Chris,

Could you please clarify, where exactly do you run this code?

Chris6743166
Posts: 1
Joined: Tue Mar 18, 2014 11:50 am

Libraries v5.1 and "cordova-plugin-ionic-webview" plugin - iOS problems

Hi Serhii,

Sure. It's on the home page. On Push Initialise, a datasource called 'register_token' which is run. The dataservice utilises the service named 'wpRegisterToken'. The code is run when the service is COMPLETE.

responseTxt.status would previously have returned '200'. However, since the upgrade it returns undefined, despite a test of the service giving a HTTP response code 200. Also, the token is registered fine, but I need the HTTP response code.

I'd also greatly appreciate feedback on the problem mentioned with navigation on iOS 12.

Thanks,

Chris

Chris6743166
Posts: 1
Joined: Tue Mar 18, 2014 11:50 am

Libraries v5.1 and "cordova-plugin-ionic-webview" plugin - iOS problems

Hi Serhii,

I also need to bring to your attention that, since the Library upgrade, as well as the above mentioned problems with iOS builds, there are also significant problems with Android builds too. Notably:

  1. Push Initialise does not run. I've tried to get a JavaScript alert to display on Push Initialise and it does not fire.

  2. App Navigation does not work.

    All the of the issues above are quite urgent as I have a client waiting for this app to appear on the app store.

    Many thanks,

    Chris

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Libraries v5.1 and "cordova-plugin-ionic-webview" plugin - iOS problems

Please select the latest PushPlugin and try again.
Do you see any errors in the Weinre console?

Chris6743166
Posts: 1
Joined: Tue Mar 18, 2014 11:50 am

Libraries v5.1 and "cordova-plugin-ionic-webview" plugin - iOS problems

Hi Serhii,

I've tested the app with both Push Plugin 2.2.3 and 2.3.0 (previously and again today). Neither works. Nor does navigation on either Android and iOS 12 and below.

Weinre console is empty. I've added this javascript to run on Push Initialise:

codeconsole.log('push initialise has run');/code

And it does not appear in the Weinre console.

Thanks,

Chris

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Libraries v5.1 and "cordova-plugin-ionic-webview" plugin - iOS problems

Please share (https://docs.appery.io/docs/teams-sha...) your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and provide us with the app name, we will check it on our side

Chris6743166
Posts: 1
Joined: Tue Mar 18, 2014 11:50 am

Libraries v5.1 and "cordova-plugin-ionic-webview" plugin - iOS problems

As mentioned in the original post:

[quote:]
The app is called Hooson (6d0f42e4-32d0-4e03-b243-3ba6da40e4cc) and is shared with support.
[/quote]

Thank you.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Libraries v5.1 and "cordova-plugin-ionic-webview" plugin - iOS problems

Please delete the edited (blue colored) files on the Source tab and click Undo all source changes on the folder with the edited files.

Here (https://docs.appery.io/docs/appbuilde...) is more information about Source files editing.

You have changed config.xml which stops changes in the Push Notification settings after libraries update

Chris6743166
Posts: 1
Joined: Tue Mar 18, 2014 11:50 am

Libraries v5.1 and "cordova-plugin-ionic-webview" plugin - iOS problems

OK. I've done that (again).

I'm now getting this build error for Android APKs:

[quote:]
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
Learn how to resolve the issue at https://developer.android.com/studio/....
Program type already present: android.support.v4.media.MediaBrowserCompat$CallbackHandler
[/quote]

And for iOS the problems mentioned in the first post remain regarding push registration and navigation.

Thanks for your continued help with this problem.

Chris

Return to “Issues”