taivo / parse-push-plugin

Push notification plugin for Cordova/Phonegap/ionic on Parse platform
118 stars 102 forks source link

Android 8.0 app crash when built via Phonegap #138

Open SurionAndrew opened 5 years ago

SurionAndrew commented 5 years ago

So I have read through various issues and tried various solutions, but now its finally time to create an account and ask for help.

I am currently using Phonegap 6.5.0 and desperately trying to get push notifications to work. below is the debug from logcat when the app crashes. As a note it does work on IOS, I do have a feeling its because ParsePushApplication.java is not called? But I have only been working woth phonegap/cordova for a week or so and am very noob :)

2019-04-26 09:57:57.291 11326-11573/com.phonegap.helloworld E/AndroidRuntime: FATAL EXCEPTION: pool-1-thread-2 Process: com.phonegap.helloworld, PID: 11326 java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.File com.parse.ParsePlugins.getParseDir()' on a null object reference at com.parse.ParseCorePlugins.getCurrentInstallationController(ParseCorePlugins.java:273) at com.parse.ParseInstallation.getCurrentInstallationController(ParseInstallation.java:53) at com.parse.ParseInstallation.getCurrentInstallation(ParseInstallation.java:59) at github.taivo.parsepushplugin.ParsePushPlugin$1.run(ParsePushPlugin.java:88) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764)

Here is the html

`<!DOCTYPE html>

Blank App

` And the accompanying config.xml

`<?xml version='1.0' encoding='utf-8'?>

TEST A blank PhoneGap app. PhoneGap Team

`