Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 'Webview is null' onTransitionReceived #53

Open
TomCrowder opened this issue May 18, 2015 · 3 comments
Open

Android 'Webview is null' onTransitionReceived #53

TomCrowder opened this issue May 18, 2015 · 3 comments

Comments

@TomCrowder
Copy link

Hi,

I'm having a problem on Android when a transition is received when the app is not already running in the background. If the app is running it's fine. The app process starts (Task Manager shows it has a 5MB footprint) but doesn't appear to load the CordovaWebView. Here's the log output:

D/GeofencePlugin(29512): ReceiveTransitionsIntentService - onHandleIntent
D/GeofencePlugin(29512): Geofence transition detected
D/GeofencePlugin(29512): Webview is null

I'm not sure if this is an issue with the plugin or the way I'm using it but I've tried fiddling with a number of things and haven't got any closer. It's working on iOS, so any tips on the Android side would be gratefully received.

Regards,
Tom

@tsubik
Copy link
Member

tsubik commented Sep 6, 2015

This is just an information, you can't run javascript code if app is closed, at least on android.

@ElieSauveterre
Copy link

@TomCrowder I did something that could help. In my case, I needed to send a request to a server each time the user enter or exit a geofence.

ElieSauveterre@f535499

@frmi
Copy link

frmi commented Mar 8, 2016

@ElieSauveterre you should consider using HttpURLConnection instead of Apache HTTP client as it has been removed in Android 6. See http://developer.android.com/about/versions/marshmallow/android-6.0-changes.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants