Page 1 of 3

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

Posted: Thu May 14, 2020 9:16 am
by Chris6743166

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.


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

Posted: Thu May 14, 2020 3:29 pm
by Serhii Kulibaba

Hello Chris,

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


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

Posted: Thu May 14, 2020 4:08 pm
by Chris6743166

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


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

Posted: Sun May 17, 2020 4:26 pm
by Chris6743166

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


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

Posted: Mon May 18, 2020 12:51 pm
by Serhii Kulibaba

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


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

Posted: Mon May 18, 2020 3:07 pm
by Chris6743166

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


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

Posted: Tue May 19, 2020 1:49 pm
by Serhii Kulibaba

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


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

Posted: Tue May 19, 2020 1:52 pm
by Chris6743166

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.


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

Posted: Thu May 21, 2020 9:12 am
by Serhii Kulibaba

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


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

Posted: Thu May 21, 2020 9:48 am
by Chris6743166

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