transistorsoft / cordova-background-geolocation-lt

The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android.
http://www.transistorsoft.com/shop/products/cordova-background-geolocation
Other
655 stars 277 forks source link

this plugin is not working cordova-plugin-wkwebview-engine #1344

Closed Ambikapathi closed 1 month ago

Ambikapathi commented 2 years ago

Your Environment

Expected Behavior

Need to work with cordova wkwebview engine plugin

Actual Behavior

Ios app store not allowed apps without wkwebview. So background plugin not work with wkwebview plugin. It give app crash.

Steps to Reproduce

  1. Install both cordova wkwebview engine and cordova background geolocation lt plugin 2.Then make ios build 3.Then install ios apk in ios mobile 4.Open the apk in ios mobile. 5.It will crash when app open

Context

Debug logs

Logs ``` PASTE_YOUR_LOGS_HERE ```
christocracy commented 2 years ago

It will crash when app open

What makes you think the plugin is responsible? You haven't posted a stacktrace referencing the plugin.

Ambikapathi commented 2 years ago

Once i installed cordova background lt plugin. then wkwebview plugin gives error like this -- > int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");

Once i removed background lt plugin app working fine.

christocracy commented 2 years ago

I have no idea what your problem is. There is no reference to anything from the plugin in int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");.

christocracy commented 2 years ago

Cordova version (cordova -v): 10.0.0

Btw, the latest Cordova CLI is 11.0.0

https://www.npmjs.com/package/cordova

christocracy commented 2 years ago

Also, have you looked at the status of this "cordova-plugin-wkwebview-engine" that you referenced?

Screen Shot 2022-04-14 at 12 58 29 PM
Ambikapathi commented 2 years ago

There is no problem in your plugin. Only the plugin is not works with wkwebview plugin. Above issue is returned by wkwebview plugin once i merge with background lt plugin . without wkwebview app store not accepting ipa in app store.

Ambikapathi commented 2 years ago

Bypass webview entirely using native geolocation plugin #895

this is my issue for now

christocracy commented 2 years ago

Customers have been using the plugin with WkWebView since at least 2017. This isn't new.

https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/548

christocracy commented 2 years ago

You can search the issues here for "WkWebView".

https://github.com/transistorsoft/cordova-background-geolocation-lt/issues?q=WkWebView

I suggest you start by uninstalling deprecated plugins.

Ambikapathi commented 2 years ago

I have searched in issues. But nothing is related to me. Can you suggest which wkwebview plugin is working with background lt plugin.

christocracy commented 2 years ago

I don't know anything about WkWebView.

christocracy commented 2 years ago

I suggest you migrate your app to Capacitor, which uses WkWebView by default.

christocracy commented 2 years ago

Did you read the deprecation notice at cordova-plugin-wkwebview-engine??

Screen Shot 2022-04-14 at 1 38 27 PM
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 14 days since being marked as stale.