Giter VIP home page Giter VIP logo

pushwoosh-react-native-plugin's Introduction

React Native Pushwoosh Push Notifications module

GitHub release npm license

platforms

Guide Documentation Sample

Installation

npm install pushwoosh-react-native-plugin --save
react-native link pushwoosh-react-native-plugin

For Android platform, also add the following lines to your project's build.gradle:

//you should already have buildscript and dependencies blocks in your project's build.gradle so just put the classpath line there
buildscript {
 dependencies {
 classpath 'com.google.gms:google-services:4.3.3'
 }
}

//add these lines to the very end of your build.gradle
apply {
 plugin com.google.gms.googleservices.GoogleServicesPlugin
}

Usage

import Pushwoosh from 'pushwoosh-react-native-plugin';

Pushwoosh.init({ 
    "pw_appid" : "YOUR_PUSHWOOSH_PROJECT_ID" , 
    "project_number" : "YOUR_GCM_PROJECT_NUMBER" 
});
Pushwoosh.register();

In order to use custom notification handling on iOS specify the parameter "pw_notification_handling" to "CUSTOM" when initializing the plugin(If no value specified Pushwoosh notification handler is used):

import Pushwoosh from 'pushwoosh-react-native-plugin';

Pushwoosh.init({ 
    "pw_appid" : "YOUR_PUSHWOOSH_PROJECT_ID" , 
    "project_number" : "YOUR_GCM_PROJECT_NUMBER",
    "pw_notification_handling" : "CUSTOM"
});
Pushwoosh.register();

In order to use reverse proxy to connect to pushwoosh servers specify the parameter "reverse_proxy_url" with the url to your reverse proxy when initializing the plugin:

import Pushwoosh from 'pushwoosh-react-native-plugin';

Pushwoosh.init({ 
    "pw_appid" : "YOUR_PUSHWOOSH_PROJECT_ID" , 
    "project_number" : "YOUR_GCM_PROJECT_NUMBER",
    "reverse_proxy_url" : "URL_TO_YOUR_REVERSE_PROXY"
});
Pushwoosh.register();

pushwoosh-react-native-plugin's People

Contributors

aaevstefeev avatar aidan-24com avatar akidisdev avatar akidison avatar bozidark93 avatar dimanam avatar fectum89 avatar kaizerzer avatar malaman avatar nikolleto avatar richlloydmiles avatar savinmike avatar stereodenis avatar wfhm avatar yyoshiki41 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pushwoosh-react-native-plugin's Issues

Unregister not actually unregistering in iOS

For some high level context, I am trying to implement a toggle for turning push notifications on/off. I expected to use getPushToken as a way to tell if someone has enabled push notifications and registered their device with Pushwoosh. It appears that even after unregistering, I am still able to get a push token.

I'm not sure if I am misusing the api or if this is a bug.

Expected behavior:

  1. .register(): calls success callback
  2. .getPushToken: passes token to callback
  3. .unregister(): calls success callback
  4. .getPushToken: passes undefined/null to callback

Actual behavior:

  1. .register(): calls success callback
  2. .getPushToken: passes token to callback
  3. .unregister(): calls success callback
  4. .getPushToken: passes token to callback

[IOS] Undefined symbols for architecture x86_64

I just upgraded this plugin from 5.9 to 5.12 and I can't compile anymore on iOS.
Got the following error :

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_PWGeozonesManager", referenced from:
      objc-class-ref in libpushwoosh-react-native-plugin.a(Pushwoosh.o)
ld: symbol(s) not found for architecture x86_64

Environment:
OS: macOS 10.14
Node: 10.13.0
Yarn: 1.7.0
npm: 6.4.1
Watchman: 4.9.0
Xcode: Xcode 10.1 Build version 10B61
Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: ~0.55.2 => 0.55.4

iOS subscriber problem

Hi !

After adding this plugin to our application, it seems to work well on Android but on iOS we are observing a strange behaviour.

We run the app in release mode (to try the notification we must do it in release), the device get registered and we can see an iOS subscriber. The thing is that if we close the app, we loose the registered device on Pushwoosh dashboard and can't send the push notification.

Anyone got a clue on how to solve that ?

[Android] setApplicationIconBadgeNumber crashes app

Attempt to invoke virtual method 'void com.pushwoosh.badge.c.a.a(int)' on a null object reference
setBadgeNumber
null:4
setApplicationIconBadgeNumber
PushwooshPlugin.java:289
invoke
Method.java
invoke
JavaMethodWrapper.java:372
invoke
JavaModuleWrapper.java:160
run
NativeRunnable.java
handleCallback
Handler.java:873
dispatchMessage
Handler.java:99
dispatchMessage
MessageQueueThreadHandler.java:29
loop
Looper.java:193
run
MessageQueueThreadImpl.java:192
run
Thread.java:764

crash at startup

Working fine in debug mode, crashing when apk build for production realease.
Here's the error log: 

2019-04-15 15:13:15.914 5415-5415/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: mob.franceantilles.gp, PID: 5415
    java.lang.RuntimeException: Unable to get provider com.pushwoosh.PushwooshInitProvider: java.lang.IllegalStateException: Could not find class for name: com.pushwoosh.reactnativeplugin.PushwooshNotificationServiceExtension
        at android.app.ActivityThread.installProvider(ActivityThread.java:6590)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:6115)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6021)
        at android.app.ActivityThread.access$1300(ActivityThread.java:207)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1748)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6863)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
     Caused by: java.lang.IllegalStateException: Could not find class for name: com.pushwoosh.reactnativeplugin.PushwooshNotificationServiceExtension
        at com.pushwoosh.f.a(Unknown Source:100)
        at com.pushwoosh.f.<init>(Unknown Source:127)
        at com.pushwoosh.t.a(Unknown Source:42)
        at com.pushwoosh.PushwooshInitProvider.onCreate(Unknown Source:18)
        at android.content.ContentProvider.attachInfo(ContentProvider.java:2000)
        at android.content.ContentProvider.attachInfo(ContentProvider.java:1975)
        at android.app.ActivityThread.installProvider(ActivityThread.java:6585)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:6115) 
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6021) 
        at android.app.ActivityThread.access$1300(ActivityThread.java:207) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1748) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loop(Looper.java:193) 
        at android.app.ActivityThread.main(ActivityThread.java:6863) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) 
2019-04-15 15:22:31.124 7041-7041/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: mob.franceantilles.gp, PID: 7041
    java.lang.RuntimeException: Unable to get provider com.pushwoosh.PushwooshInitProvider: java.lang.IllegalStateException: Could not find class for name: com.pushwoosh.reactnativeplugin.PushwooshNotificationServiceExtension
        at android.app.ActivityThread.installProvider(ActivityThread.java:6590)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:6115)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6021)
        at android.app.ActivityThread.access$1300(ActivityThread.java:207)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1748)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6863)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
     Caused by: java.lang.IllegalStateException: Could not find class for name: com.pushwoosh.reactnativeplugin.PushwooshNotificationServiceExtension
        at com.pushwoosh.f.a(Unknown Source:100)
        at com.pushwoosh.f.<init>(Unknown Source:127)
        at com.pushwoosh.t.a(Unknown Source:42)
        at com.pushwoosh.PushwooshInitProvider.onCreate(Unknown Source:18)
        at android.content.ContentProvider.attachInfo(ContentProvider.java:2000)
        at android.content.ContentProvider.attachInfo(ContentProvider.java:1975)
        at android.app.ActivityThread.installProvider(ActivityThread.java:6585)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:6115) 
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6021) 
        at android.app.ActivityThread.access$1300(ActivityThread.java:207) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1748) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loop(Looper.java:193) 
        at android.app.ActivityThread.main(ActivityThread.java:6863) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) 
2019-04-15 15:22:31.125 564-564/? E/SELinux: avc:  denied  { find } for service=opdiagnose pid=7041 uid=10216 scontext=u:r:untrusted_app:s0:c216,c256,c512,c768 tcontext=u:object_r:opdiagnose_service:s0 tclass=service_manager permissive=0
2019-04-15 15:22:31.126 564-564/? E/SELinux: avc:  denied  { find } for service=opdiagnose pid=7041 uid=10216 scontext=u:r:untrusted_app:s0:c216,c256,c512,c768 tcontext=u:object_r:opdiagnose_service:s0 tclass=service_manager permissive=0

Pushwoosh with deep linking Manifest not working

When Implementing simple deepliking "https://medium.com/react-native-training/deep-linking-your-react-native-app-d87c39a1ad5e"
You add following lines to manifest then Android "pushOpened" event never calls
Remove these lines pushOpen works like a charm.

:(

<intent-filter android:label="filter_react_native"> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="myactivity" /> </intent-filter>

Cocoapods

There is no podspec to add this library via Pods

pushOpened event not fired on ANDROID

I have a similar issue as #6 but in my case it's not working on Android.

On iOS I'm using this method and it's currently working:

Pushwoosh.onPushOpen(_pushHandler);

but on Android I've tried that method and also the DeviceEventEmitter:

DeviceEventEmitter.addListener('pushOpened', _pushHandler); 

but they're not firing.

Does anyone know what could be the problem?

Thanks for your help in advance

I'm using "react-native": "0.41.2" and "pushwoosh-react-native-plugin": "^3.0.2"

Enable multiple notifications in Android and IOS

Currently all my notifications get replaced with the new one. How can i enable multiple notifcations. Also i want the notifcation badge on the app icon in IOS to automatically set count based on notifications how can i achieve that with react-native pushwoosh plugin.

[android] getHwid returns a guid

hello,
the device registration and every initialization works fine; problem is that if i send a notification from pushwoosh panel, message history says "success" but i simply don't receive anything on android devices; (if i send it from firebase cm panel using the token given by pushwoosh.register it works as expected, also iOS notifications works perfectly from pushwoosh panel and both ios and android devices are correctly registered).
i just noticed that the function pushwoosh.gethwid in android returns a guid formatted like this: d78c0342-49a4-4d6e-b8c6-95353d15f946, but this is not what i was expecting as hwid for android should be formatted like this "a9f282012f5dce9e". (ios, instead, returns a correct uppercase guid).
can this be the cause of the problem of not receiving pushes on android? how can i solve it?

thanks

Android Build Fails

I updated to the most recent version and whenever the Pushwoosh plugin is present I get this compilation error on Android:

Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
> java.io.IOException: Can't write [/Users/*****/*****/android/app/build/
intermediates/multi-dex/debug/componentClasses.jar] (Can't read [/Users
/*****/.gradle/caches/transforms-1/files-1.1/support-core-ui-27.1.1.aar/
10ef497bc88d4fd17626c7c50fff5bb0/jars/classes.jar(;;;;;;**.class)] 
(Duplicate zip entry [classes.jar:android/support/design/widget
/CoordinatorLayout$Behavior.class]))

iOS works fine. No matter what version of the play service & firebase I use to compile, it systematically fails.

IOS Support

Hello, It is planned add IOS Support?

Thanks

Old hardcoded react-native version not correct

I upgraded our react-native application to the latest version and also upgraded gradle, but keep getting the following errors:
"error: cannot find symbol class ReactApplication"
"error: cannot find symbol class ReactNativeHost"

I kept debugging the thing, by removing all my dependencies one by one and realized, that it was caused by this package.

I will submit a pull request to fix this now, but just wanted to keep this here to make sure others with the same problem, searching through issues, find this.
Also if you are not using this package, but keep getting this message:

Try removing dependencies and look for hardcoded react-native version "compiles" in the package build.gradle files.

iOS: can't build version 5.6.3, 5.7.0

Hello.
I'm trying to integrate PushWoosh with my iOS app.

I got error till building app in Xcode
bag

Enviroment info

  • XCode 9.4
  • iOS SDK 11.4
  • react-native 0.54.2
  • cocoapods 1.4.0

Podfile

platform :ios, '9.0'

target 'Preply' do

  pod 'React', :path => '../node_modules/react-native', :subspecs => [
    'Core',
    'CxxBridge', 
    'RCTActionSheet',
    'RCTAnimation',
    'RCTGeolocation',
    'RCTLinkingIOS',
    'RCTSettings',
    'RCTVibration',
    'DevSupport'
  ]
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  pod 'pushwoosh-react-native-plugin', :path => '../node_modules/pushwoosh-react-native-plugin'


  post_install do |installer|
    installer.pods_project.targets.each do |target|
      if target.name == "React"
        target.remove_from_project
      end
    end
  end

end

I tried version 5.6.2. App was builded successfully, but I could not get pushes on mobile device.
I also made step 1.5 and 2 from Native iOS SDK guid https://www.pushwoosh.com/docs/native-ios-sdk
I spent whole day and I gave up to configure PushWoosh.

Maybe I do something wrong?
Thanks a lot!

Could not find com.google.android.gms:play-services-gcm

Hi,
I'm using pushwoosh-react-native-plugin 3.1.0 for android app.
But following error come up:

JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...
Incremental java compilation is an incubating feature.
Observed package id '..;..;..;var;lib;android-sdk;samples;android-23' in inconsistent location '/usr/local/opt/android-sdk/samples/android-23' (Expected '/usr/local/opt/android-sdk/../../../var/lib/android-sdk/samples/android-23')
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
Could not find com.google.android.gms:play-services-gcm:11.2.2.
Searched in the following locations:
file:/usr/local/opt/android-sdk/extras/google/m2repository/com/google/android/gms/play-services-gcm/11.2.2/play-services-gcm-11.2.2.pom
file:/usr/local/opt/android-sdk/extras/google/m2repository/com/google/android/gms/play-services-gcm/11.2.2/play-services-gcm-11.2.2.jar
file:/Users/jasonong/dev/react-native/SAM/android/sdk-manager/com/google/android/gms/play-services-gcm/11.2.2/play-services-gcm-11.2.2.jar
file:/usr/local/opt/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/11.2.2/play-services-gcm-11.2.2.pom
file:/usr/local/opt/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/11.2.2/play-services-gcm-11.2.2.jar
file:/Users/jasonong/dev/react-native/SAM/android/sdk-manager/com/google/android/gms/play-services-gcm/11.2.2/play-services-gcm-11.2.2.jar
Required by:
`
My android sdk have installed lastest android support repository & google repository.

For previous version 3.0.2, it working well,
but I need the "pushReceived" function to handling foreground notification.
Please help me to solve this issue together.

Environment:
OS: macOS Sierra 10.12.6
Node: 7.2.1
Yarn: Not Found
npm: 4.6.1
Watchman: 4.4.0
Xcode: Xcode 9.0 Build version 9A235
Android Studio: 2.1 AI-143.2821654

Packages: (wanted => installed)
react: ^16.0.0-alpha.12 => 16.0.0
react-native: ^0.48.3 => 0.48.4

Task :pushwoosh-react-native-plugin:verifyReleaseResources FAILED

Setup

  • "react-native": "0.59.5"
    
  • "pushwoosh-react-native-plugin": "^5.14.0"
    

Android Gradle Settings:

  • buildToolsVersion = "28.0.3"
  • minSdkVersion = 16
  • compileSdkVersion = 28
  • targetSdkVersion = 28
  • supportLibVersion = "28.0.0"
  • classpath 'com.android.tools.build:gradle:3.3.1'

ERROR ON ANDROID BUILD

'''> Task :pushwoosh-react-native-plugin:verifyReleaseResources FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':pushwoosh-react-native-plugin:verifyReleaseResources'.

java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
/Users/facebookAD3918/gitlab/test/node_modules/pushwoosh-react-native-plugin/src/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
/Users/facebookAD3918/gitlab/test/node_modules/pushwoosh-react-native-plugin/src/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
/Users/facebookAD3918/gitlab/test/node_modules/pushwoosh-react-native-plugin/src/android/build/intermediates/res/merged/release/values/values.xml:3185: error: resource android:attr/fontVariationSettings not found.
/Users/facebookAD3918/gitlab/test/node_modules/pushwoosh-react-native-plugin/src/android/build/intermediates/res/merged/release/values/values.xml:3186: error: resource android:attr/ttcIndex not found.
error: failed linking references.'''

pushReceived not firing while app is in background

I'm currently sending "content-available": 1 inside aps with remote notifications background mode capabilities turned on but Push received only fires if the app is is foreground but not in the background

Not able to upgrade to latest version. 5.8.0

Task :pushwoosh-react-native-plugin:compileDebugJavaWithJavac FAILED
/Users/user/Documents/apps/MaxSecurity/node_modules/pushwoosh-react-native-plugin/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PushwooshPlugin.java:18: error: cannot find symbol
import com.pushwoosh.GDPRManager;
^
symbol: class GDPRManager
location: package com.pushwoosh
/Users/user/Documents/apps/MaxSecurity/node_modules/pushwoosh-react-native-plugin/src/android/src/main/java/com/pushwoosh/reactnativeplugin/InboxUiStyleManager.java:77: error: cannot find symbol
PWInboxStyle.setDefaultImageIconDrawable(defaultImageIcon);
^
symbol: method setDefaultImageIconDrawable(Drawable)
location: variable PWInboxStyle of type PushwooshInboxStyle
/Users/user/Documents/apps/MaxSecurity/node_modules/pushwoosh-react-native-plugin/src/android/src/main/java/com/pushwoosh/reactnativeplugin/InboxUiStyleManager.java:81: error: cannot find symbol
PWInboxStyle.setListErrorImageDrawable(listErrorImage);
^
symbol: method setListErrorImageDrawable(Drawable)
location: variable PWInboxStyle of type PushwooshInboxStyle
/Users/user/Documents/apps/MaxSecurity/node_modules/pushwoosh-react-native-plugin/src/android/src/main/java/com/pushwoosh/reactnativeplugin/InboxUiStyleManager.java:85: error: cannot find symbol
PWInboxStyle.setListEmptyImageDrawable(listEmptyImage);
^
symbol: method setListEmptyImageDrawable(Drawable)
location: variable PWInboxStyle of type PushwooshInboxStyle
/Users/user/Documents/apps/MaxSecurity/node_modules/pushwoosh-react-native-plugin/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PushwooshPlugin.java:311: error: cannot find symbol
GDPRManager.getInstance().showGDPRConsentUI();
^
symbol: variable GDPRManager
location: class PushwooshPlugin
/Users/user/Documents/apps/MaxSecurity/node_modules/pushwoosh-react-native-plugin/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PushwooshPlugin.java:316: error: cannot find symbol
GDPRManager.getInstance().showGDPRDeletionUI();
^
symbol: variable GDPRManager
location: class PushwooshPlugin
/Users/user/Documents/apps/MaxSecurity/node_modules/pushwoosh-react-native-plugin/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PushwooshPlugin.java:321: error: cannot find symbol
success.invoke(GDPRManager.getInstance().isDeviceDataRemoved());
^
symbol: variable GDPRManager
location: class PushwooshPlugin
/Users/user/Documents/apps/MaxSecurity/node_modules/pushwoosh-react-native-plugin/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PushwooshPlugin.java:326: error: cannot find symbol
success.invoke(GDPRManager.getInstance().isCommunicationEnabled());
^
symbol: variable GDPRManager
location: class PushwooshPlugin
/Users/user/Documents/apps/MaxSecurity/node_modules/pushwoosh-react-native-plugin/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PushwooshPlugin.java:331: error: cannot find symbol
success.invoke(GDPRManager.getInstance().isAvailable());
^
symbol: variable GDPRManager
location: class PushwooshPlugin
/Users/user/Documents/apps/MaxSecurity/node_modules/pushwoosh-react-native-plugin/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PushwooshPlugin.java:336: error: cannot find symbol
GDPRManager.getInstance().setCommunicationEnabled(enable, new com.pushwoosh.function.Callback<Void, PushwooshException>() {
^
symbol: variable GDPRManager
location: class PushwooshPlugin
/Users/user/Documents/apps/MaxSecurity/node_modules/pushwoosh-react-native-plugin/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PushwooshPlugin.java:354: error: cannot find symbol
GDPRManager.getInstance().removeAllDeviceData(new com.pushwoosh.function.Callback<Void, PushwooshException>() {
^
symbol: variable GDPRManager
location: class PushwooshPlugin
11 errors

FAILURE: Build failed with an exception.

Android - Could not invoke Pushwoosh.init

Hello,

I'm having an issue running my app on Android. I followed the installation instructions (install & link) and the package works perfectly on iOS. I also checked that my build.gradle was using version 26+ of the android sdk.

Using this simple init code:

Pushwoosh.init({
  pw_appid: appId,
  project_number: projectNumber
});

I get the following error on the first load after building my app:
screen shot 2018-03-28 at 10 43 39 am

If I simply refresh, the error changes to this:
screen shot 2018-03-28 at 10 44 03 am

Any help would be greatly appreciated.
Thank you!

App crashes when push notification is received

Hi,

I follow all the steps and the notification is correctly showed in the status bar, but every time a push is received the app crashes.

The emulator show an alert saying: APP_NAME has stopped and the following error is logged in Crashalytics:

Fatal Exception: java.lang.RuntimeException
Unable to instantiate service com.pushwoosh.PushFcmIntentService: java.lang.ClassNotFoundException: Didn't find class "com.pushwoosh.PushFcmIntentService" on path: DexPathList[[zip file "/data/app/MY_APP_PACKAGE/base.apk"],nativeLibraryDirectories=[/data/app/MY_APP_PACKAGE/lib/arm, /data/app/MY_APP_PACKAGE/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib, /system/vendor/lib, /product/lib]]

I know it crashes in the device because is registered in Crashalytics as well.

I tried removing the DeviceEventEmitter listeners and having the minimal configuration, but nothing fixes the error.

Pushwoosh.init({ 
    "pw_appid" : "APP_ID" , 
    "project_number" : "PROJECT_NUMBER" 
  });
  Pushwoosh.register();

Do you have any idea about that com.pushwoosh.PushFcmIntentService missing class?

Android build fails - com.android.tools:common:25.3.3

Android builds are failing as of Friday, December 7th. From what I can tell, com.android.tools:common:25.3.3 (a dependency of com.android.tools.build:gradle:2.3.3) is no longer present in the jcenter repository. It also is not in the google repository either (they only have as far back as version 26).

We've been using pushwoosh for a while, running our builds on AppCenter (so a fresh build fetch of all code every time, no caches). Our builds succeeded Thursday and failed Friday (with no package.json changes). While we are using an older version (), I've tried upgrading to the latest version (). It failed, but that makes sense as the latest version still relies on android tools/gradle 2.3.3.

I'm certainly no expert on gradle, so maybe I'm just missing something. Though others appear to be running into the same issue:
https://stackoverflow.com/questions/53677823/cannot-run-existing-android-project-com-android-toolscommon25-3-3/53680522

setTags doesn't work on Android

I can register the device and then the setTags function return a success callback
but when I check my tag in the control panel or with the getTags function I can't see it

[Android] Unreproducible builds and dependencies pushing the Dex limit

https://github.com/Pushwoosh/pushwoosh-react-native-plugin/blob/master/src/android/build.gradle

There is a whole bunch of dependencies that are not required for most users, as they are specifically made for native UI development, and this is supposed to be a library for React Native.

implementation "com.android.support:recyclerview-v7:27.+"
implementation "com.android.support.constraint:constraint-layout:1.0.2"

Also, the "+" in dependency configurations is considered a poor practice, as it leads to unreproducible builds. In fact, I've only started to investigate, because an app that had worked just a month ago did not build yesterday, because the new versions of the libraries had fetched and we've hit the Dex limit.

I've excluded the Amazon module for now, as I know that the app will be only published to the Google Play, but I'd much rather get rid of the libraries for native UI development as there is absolutely no use for them.

    compile(project(':pushwoosh-react-native-plugin')) {
        exclude group: "com.pushwoosh", module: "pushwoosh-amazon"
    }

Please, fix your build.gradle

Set tag not working in ios

i am setting the tags as {
"white_clarity" = (
VVS1,
SI3,
VVS2,
I1
);
"white_color" = (
E,
J,
K,
F
);
"white_lab" = (
HRD,
AGS,
IGI
);
"white_shape" = (
PEAR,
EMERALD,
PRINCESS
);
}

But getting this response with skipped three tags

Response: {"status_code":200,"status_message":"OK","response":{"skipped":[{"tag":"white_lab","reason":"Not found"},{"tag":"white_clarity","reason":"Not found"},{"tag":"white_color","reason":"Not found"}]}}

Android resource linking failed on RN 0.58

buildToolsVersion = "28.0.2"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 27
supportLibVersion = "28.0.0"

* What went wrong:
Execution failed for task ':pushwoosh-react-native-plugin:verifyReleaseResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
  Output:  /Users/stereodenis/work/busfor-app/node_modules/pushwoosh-react-native-plugin/src/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
  /Users/stereodenis/work/busfor-app/node_modules/pushwoosh-react-native-plugin/src/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
  /Users/stereodenis/work/busfor-app/node_modules/pushwoosh-react-native-plugin/src/android/build/intermediates/res/merged/release/values/values.xml:1166: error: resource android:attr/fontVariationSettings not found.
  /Users/stereodenis/work/busfor-app/node_modules/pushwoosh-react-native-plugin/src/android/build/intermediates/res/merged/release/values/values.xml:1167: error: resource android:attr/ttcIndex not found.
  error: failed linking references.
  
  Command: /Users/stereodenis/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/04da7acbe4e6c290598770fad4d05b99/aapt2-3.2.1-4818971-osx/aapt2 link -I\
          /Users/stereodenis/Library/Android/sdk/platforms/android-27/android.jar\
          --manifest\
          /Users/stereodenis/work/busfor-app/node_modules/pushwoosh-react-native-plugin/src/android/build/intermediates/aapt_friendly_merged_manifests/release/processReleaseManifest/aapt/AndroidManifest.xml\
          -o\
          /var/folders/9v/6gh7rqfj55xb7tb_djl14jph0000gn/T/aapt-6199195746783609256-out\
          -R\
          /Users/stereodenis/work/busfor-app/node_modules/pushwoosh-react-native-plugin/src/android/build/intermediates/res/compiled/release/layout_design_layout_tab_icon.xml.flat\
          -R\
          /Users/stereodenis/work/busfor-app/node_modules/pushwoosh-react-native-plugin/src/android/build/intermediates/res/compiled/release/drawable-xhdpi-v4_common_google_signin_btn_text_dark_normal_background.9.png.flat\
          -R\
          /Users/stereodenis/work/busfor-app/node_modules/pushwoosh-react-native-plugin/src/android/build/intermediates/res/compiled/release/drawable-xxhdpi-v4_abc_ic_menu_selectall_mtrl_alpha.png.flat\
          -R\
          /Users/stereodenis/work/busfor-app/node_modules/pushwoosh-react-native-plugin/src/android/build/intermediates/res/compiled/release/layout_notification_action_tombstone.xml.flat\
          -R\
          /Users/stereodenis/work/busfor-app/node_modules/pushwoosh-react-native-plugin/src/android/build/intermediates/res/compiled/release/values-ur_values-ur.arsc.flat\
          -R\
          /Users/stereodenis/work/busfor-app/node_modules/pushwoosh-react-native-plugin/src/android/build/intermediates/res/compiled/release/layout_abc_screen_toolbar.xml.flat\
          -R\
          /Users/stereodenis/work/busfor-app/node_modules/pushwoosh-react-native-plugin/src/android/build/intermediates/res/compiled/release/drawable_notification_icon_background.xml.flat\
          -R\
          /Users/stereodenis/work/busfor-app/node_modules/pushwoosh-react-native-plugin/src/android/build/intermediates/res/compiled/release/drawable-xxxhdpi-v4_inbox_ic_deep_link.png.flat\
          -R\
 ....
          --auto-add-overlay\
          --non-final-ids\
          -0\
          apk\
          --no-version-vectors
  Daemon:  AAPT2 aapt2-3.2.1-4818971-osx Daemon #8

Lexical or Preprocessor Issue

I am getting the following error in the PWEventDispatcher.h file:

screen shot 2017-03-28 at 12 48 23

#import <React/RCTBridge.h>

react-native-cli: 2.0.1
react-native: 0.37.0

google-services.json is missing

After upgrading pushwoosh-react-native-plugin from 5.6.2 to 5.14.0 I've got an error when I'm running debug build script:

react-native run-android --variant=debug --appIdSuffix 'debug'
> Task :app:processDebugGoogleServices FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugGoogleServices'.
> File google-services.json is missing. The Google Services Plugin cannot function without it.

I haven't google-services.json file in my project because I'm not using google services and I want to avoid adding it to the project.

Environment:
react-native: 0.59.1
buildToolsVersion = "28.0.3"
minSdkVersion = 21
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = "28.0.0"
classpath 'com.android.tools.build:gradle:3.3.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.0"
Emulator: Pixel

App does not react to push when in foreground+iPhone locked on ios11

Here is what is going on,

The plugin works fine except for this situation:

  • your application is open and active in the foreground
  • you lock your iphone
  • you receive a push notification and swipe it, enter passcode or touchId
  • the notification has already been in the foreground
  • but events: either pushReceived nor pushOpened are emited

iPhone 8, ios11.2.5, react-native 0.45.1

  • this is not working only on ios11, ios10 works fine.

Any ideas?

undefined is not an Object PushwooshModule.init on ios

Environment:
OS: macOS Sierra 10.12.6
Node: 8.1.4
Yarn: 0.27.5
npm: 4.6.1
Watchman: 4.9.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.1 AI-173.4697961

Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.2 => 0.55.2
simulator screen shot - iphone 6 - 2018-04-13 at 14 14 33

While following installation guide for RN project init project

===========
PACKAGE JSON FOR VERSIONS
{
"name": "[Hidden*****]",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"axios": "^0.18.0",
"linking": "^0.1.0-beta.5",
"lodash": "^4.17.5",
"moment": "^2.22.0",
"native-base": "^2.4.1",
"path-to-regexp": "^2.2.0",
"pushwoosh-react-native-plugin": "^5.5.7",
"react": "16.3.1",
"react-native": "0.55.2",
"react-native-maps": "^0.21.0",
"react-native-vector-icons": "^4.6.0",
"react-navigation": "^1.5.11",
"react-navigation-redux-helpers": "^1.0.5",
"react-redux": "^5.0.7",
"redux": "^3.7.2",
"redux-devtools-extension": "^2.13.2",
"redux-logger": "^3.0.6",
"redux-thunk": "^2.2.0"
},
"devDependencies": {
"babel-jest": "22.4.3",
"babel-preset-react-native": "4.0.0",
"jest": "22.4.3",
"react-test-renderer": "16.3.1"
},
"jest": {
"preset": "react-native"
}
}

===========

Android: register/unregister callbacks never triggered

The init function work well. My success callback is trigged but then when I try to register or unregister a device:

Pushwoosh.register(
  token => {
    console.log("Pushwoosh register success", token);
    this.token = token;
  },
  e => console.log("Pushwoosh register failed", e)
);

neither callbacks (success or failure) are triggered.

Based on the source code of the plugin:

if (result.isSuccess()) {
  success.invoke(result.getData());
} else if (result.getException() != null) {
  error.invoke(result.getException().getLocalizedMessage());
}

So it seems in my case that result.isSuccess() is false and that result.getException() is equal to null.

Any idea how that is possible?

iOS: "unsupported URL" error while "Pushwoosh.init" in release build

Code example

Pushwoosh.init({
    pw_appid: "XXXXX"
  });
  Pushwoosh.setUserId("XXXXX");
  Pushwoosh.register(
    token => {
      console.log("Registered for push notifications with token: " + token);
    },
    error => {
      alert(error);   // "unsupported URL"
    }
  );

Reproduce:

  1. Run application on device via XCode using Build Configuration=Release
  2. iOS Allow notification confirmation appears successfully
  3. After taping "Allow" this error appears (unsupported URL)

Enviroment:

XCode console logs (private data replaced with XXXXXXX)

2018-07-25 18:34:51.552951+0300 Myapp[3135:1280230] Pushwoosh: Initializing application runtime
2018-07-25 18:34:51.964254+0300 Myapp[3135:1280346] [branch.io] Branch.m(192) Log: Branch version 0.24.1 started at 2018-07-25 15:34:51 +0000.
2018-07-25 18:34:52.021294+0300 Myapp[3135:1280354] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2018-07-25 18:34:52.025633+0300 Myapp[3135:1280354] [MC] Reading from public effective user settings.
2018-07-25 18:34:52.122654+0300 Myapp[3135:1280230] [Crashlytics] Version 3.9.3 (128)
2018-07-25 18:34:52.319756+0300 Myapp[3135:1280230] Could not successfully update network info during initialization.
2018-07-25 18:34:52.670100+0300 Myapp[3135:1280230] Setting up RNFirebase instance
2018-07-25 18:34:52.768439+0300 Myapp[3135:1280346] TIC Read Status [3:0x0]: 1:57
2018-07-25 18:34:52.768511+0300 Myapp[3135:1280346] TIC Read Status [3:0x0]: 1:57
2018-07-25 18:34:52.844918+0300 Myapp[3135:1280230] Could not successfully update network info during initialization.
2018-07-25 18:34:52.901867+0300 Myapp[3135:1280369] TIC Read Status [1:0x0]: 1:57
2018-07-25 18:34:52.902371+0300 Myapp[3135:1280369] TIC Read Status [1:0x0]: 1:57
2018-07-25 18:34:53.203600+0300 Myapp[3135:1280358] TIC Read Status [8:0x0]: 1:57
2018-07-25 18:34:53.204929+0300 Myapp[3135:1280358] TIC Read Status [8:0x0]: 1:57
2018-07-25 18:34:53.268107+0300 Myapp[3135:1280358] TIC Read Status [6:0x0]: 1:57
2018-07-25 18:34:53.269401+0300 Myapp[3135:1280358] TIC Read Status [6:0x0]: 1:57
2018-07-25 18:34:53.419629+0300 Myapp[3135:1280358] TIC Read Status [7:0x0]: 1:57
2018-07-25 18:34:53.419697+0300 Myapp[3135:1280358] TIC Read Status [7:0x0]: 1:57
2018-07-25 18:34:53.605523+0300 Myapp[3135:1280230] Sentry Started -- Version: 3.12.4
    ************************ Crash Handler Notice ************************
    *     App is running in a debugger. Masking out unsafe monitors.     *
    * This means that most crashes WILL NOT BE RECORDED while debugging! *
    **********************************************************************
INFO : KSCrash.m (346): -[KSCrash sendAllReportsWithCompletion:]: Sending 0 crash reports
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]
PID: 3135, TID: 1280370, Thread name: (none), Queue name: com.facebook.react.RNAmplitudeSDKQueue, QoS: 0
Backtrace:
4   Preply                              0x00000001007aaa84 -[Amplitude initializeApiKey:userId:setUserId:] + 372
5   Preply                              0x000000010096fcd4 -[RNAmplitudeSDK initialize:setTrackSessionEvents:] + 140
6   CoreFoundation                      0x0000000185a2e580 <redacted> + 144
7   CoreFoundation                      0x000000018590d748 <redacted> + 284
8   CoreFoundation                      0x000000018591256c <redacted> + 60
9   Preply                              0x00000001008e17c8 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 492
10  Preply                              0x000000010092553c _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicE + 260
11  Preply                              0x000000010092529c ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 88
12  libdispatch.dylib                   0x00000001015491dc _dispatch_call_block_and_release + 24
13  libdispatch.dylib                   0x000000010154919c _dispatch_client_callout + 16
14  libdispatch.dylib                   0x0000000101557dfc _dispatch_queue_serial_drain + 768
15  libdispatch.dylib                   0x000000010154c6ac _dispatch_queue_invoke + 328
16  libdispatch.dylib                   0x0000000101558d54 _dispatch_root_queue_drain_deferred_wlh + 352
17  libdispatch.dylib                   0x000000010155fe38 _dispatch_workloop_worker_thread + 676
18  libsystem_pthread.dylib             0x000000018564be70 _pthread_wqthread + 860
19  libsystem_pthread.dylib             0x000000018564bb08 start_wqthread + 4
2018-07-25 18:34:53.914450+0300 Myapp[3135:1280370] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]
PID: 3135, TID: 1280370, Thread name: (none), Queue name: com.facebook.react.RNAmplitudeSDKQueue, QoS: 0
Backtrace:
4   Preply                              0x00000001007aaa84 -[Amplitude initializeApiKey:userId:setUserId:] + 372
5   Preply                              0x000000010096fcd4 -[RNAmplitudeSDK initialize:setTrackSessionEvents:] + 140
6   CoreFoundation                      0x0000000185a2e580 <redacted> + 144
7   CoreFoundation                      0x000000018590d748 <redacted> + 284
8   CoreFoundation                      0x000000018591256c <redacted> + 60
9   Preply                              0x00000001008e17c8 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 492
12  libdispatch.dylib                   0x00000001015491dc _dispatch_call_block_and_release + 24
13  libdispatch.dylib                   0x000000010154919c _dispatch_client_callout + 16
14  libdispatch.dylib                   0x0000000101557dfc _dispatch_queue_serial_drain + 768
15  libdispatch.dylib                   0x000000010154c6ac _dispatch_queue_invoke + 328
16  libdispatch.dylib                   0x0000000101558d54 _dispatch_root_queue_drain_deferred_wlh + 352
17  libdispatch.dylib                   0x000000010155fe38 _dispatch_workloop_worker_thread + 676
18  libsystem_pthread.dylib             0x000000018564be70 _pthread_wqthread + 860
19  libsystem_pthread.dylib             0x000000018564bb08 start_wqthread + 4
2018-07-25 18:34:55.297835+0300 Myapp[3135:1280375] Could not successfully update network info during initialization.
2018-07-25 18:34:55.408534+0300 Myapp[3135:1280342] TIC Read Status [10:0x0]: 1:57
2018-07-25 18:34:55.408646+0300 Myapp[3135:1280342] TIC Read Status [10:0x0]: 1:57
2018-07-25 18:34:55.551963+0300 Myapp[3135:1280371] Could not successfully update network info during initialization.
2018-07-25 18:34:55.555023+0300 Myapp[3135:1280356] Missing server connection for kCTConnectionInvalidatedNotification
2018-07-25 18:35:00.058746+0300 Myapp[3135:1280230] Status bar could not find cached time string image. Rendering in-process.
2018-07-25 18:35:06.861109+0300 Myapp[3135:1280343] TIC Read Status [11:0x0]: 1:57
2018-07-25 18:35:06.861261+0300 Myapp[3135:1280343] TIC Read Status [11:0x0]: 1:57
2018-07-25 18:35:07.143033+0300 Myapp[3135:1280539] TIC Read Status [12:0x0]: 1:57
2018-07-25 18:35:07.143185+0300 Myapp[3135:1280539] TIC Read Status [12:0x0]: 1:57
2018-07-25 18:35:07.365260+0300 Myapp[3135:1280343] TIC Read Status [13:0x0]: 1:57
2018-07-25 18:35:07.365416+0300 Myapp[3135:1280343] TIC Read Status [13:0x0]: 1:57
2018-07-25 18:35:11.933770+0300 Myapp[3135:1280539] Could not successfully update network info during initialization.
2018-07-25 18:35:17.492479+0300 Myapp[3135:1280371] TIC Read Status [14:0x0]: 1:57
2018-07-25 18:35:17.492592+0300 Myapp[3135:1280371] TIC Read Status [14:0x0]: 1:57
2018-07-25 18:35:22.363437+0300 Myapp[3135:1280534] TIC Read Status [15:0x0]: 1:57
2018-07-25 18:35:22.363597+0300 Myapp[3135:1280534] TIC Read Status [15:0x0]: 1:57
2018-07-25 18:35:41.853364+0300 Myapp[3135:1280230] [PW] HWID: XXXXXXX-XXXX-XXXX-XXXX-E05B8F6613AC
2018-07-25 18:35:41.858394+0300 Myapp[3135:1280230] [PW] [I] -[PushNotificationManager] Will show push notifications alert: 1
2018-07-25 18:35:41.886377+0300 Myapp[3135:1280535] Could not successfully update network info during initialization.
2018-07-25 18:35:42.125119+0300 Myapp[3135:1280230] [PW] [E] -[PWRequestManager] Sending registerUser failed, Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSLocalizedDescription=unsupported URL, NSUnderlyingError=0x143069440 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}}
2018-07-25 18:35:42.125938+0300 Myapp[3135:1280230] [PW] [I] -[PWLocationHelper] location services authorization status has not been determined yet
2018-07-25 18:35:42.151319+0300 Myapp[3135:1280230] [PW] [E] -[PWRequestManager] Sending getInApps failed, Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSLocalizedDescription=unsupported URL, NSUnderlyingError=0x143069650 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}}
2018-07-25 18:35:42.162890+0300 Myapp[3135:1280230] [PW] [E] -[PWRequestManager] Sending applicationOpen failed, Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSLocalizedDescription=unsupported URL, NSUnderlyingError=0x141fcb2a0 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}}
2018-07-25 18:35:42.163036+0300 Myapp[3135:1280230] [PW] [I] -[PWDataManagerCommon] sending appOpen failed
2018-07-25 18:35:42.164620+0300 Myapp[3135:1280230] [PW] [E] -[PWRequestManager] Sending getTags failed, Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSLocalizedDescription=unsupported URL, NSUnderlyingError=0x141f693b0 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}}
2018-07-25 18:35:42.164712+0300 Myapp[3135:1280230] [PW] [D] -[PWDataManagerCommon] loadTags completed
2018-07-25 18:35:42.166264+0300 Myapp[3135:1280230] [PW] [E] -[PWDataManagerCommon] loadTags failed
2018-07-25 18:35:42.172122+0300 Myapp[3135:1280230] [PW] [E] -[PWRequestManager] Sending registerUser failed, Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSLocalizedDescription=unsupported URL, NSUnderlyingError=0x143060600 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}}
2018-07-25 18:35:42.178206+0300 Myapp[3135:1280230] [PW] [E] -[PWRequestManager] Sending setAttributes failed, Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSLocalizedDescription=unsupported URL, NSUnderlyingError=0x141fdc940 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}}
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIApplication isRegisteredForRemoteNotifications]
PID: 3135, TID: 1280534, Thread name: (none), Queue name: NSOperationQueue 0x14306f9b0 (QOS: UTILITY), QoS: 17
Backtrace:
4   Preply                              0x00000001008990b4 -[PWNotificationManagerCompatiOS10 getRemoteNotificationStatusWithCompletion:] + 220
5   Preply                              0x000000010087644c +[PWPushNotificationsManagerCommon getRemoteNotificationStatus] + 264
6   Preply                              0x000000010087060c -[PWAppOpenRequest requestDictionary] + 564
7   Preply                              0x000000010089ec30 -[PWCachedRequest initWithRequest:] + 136
8   Preply                              0x0000000100885940 __39-[PWRequestsCacheManager cacheRequest:]_block_invoke + 84
9   Foundation                          0x000000018644ee88 <redacted> + 16
10  Foundation                          0x00000001863908d0 <redacted> + 72
11  Foundation                          0x000000018638fcac <redacted> + 848
12  libdispatch.dylib                   0x000000010154919c _dispatch_client_callout + 16
13  libdispatch.dylib                   0x00000001015557cc _dispatch_block_invoke_direct + 232
14  libdispatch.dylib                   0x000000010154919c _dispatch_client_callout + 16
15  libdispatch.dylib                   0x00000001015557cc _dispatch_block_invoke_direct + 232
16  libdispatch.dylib                   0x00000001015556b0 dispatch_block_perform + 104
17  Foundation                          0x0000000186450750 <redacted> + 376
18  libdispatch.dylib                   0x000000010154919c _dispatch_client_callout + 16
19  libdispatch.dylib                   0x0000000101556454 _dispatch_continuation_pop + 588
20  libdispatch.dylib                   0x0000000101554d44 _dispatch_async_redirect_invoke + 628
21  libdispatch.dylib                   0x000000010155a7c8 _dispatch_root_queue_drain + 604
22  libdispatch.dylib                   0x000000010155a500 _dispatch_worker_thread3 + 136
23  libsystem_pthread.dylib             0x000000018564bfac _pthread_wqthread + 1176
24  libsystem_pthread.dylib             0x000000018564bb08 start_wqthread + 4
2018-07-25 18:35:42.220248+0300 Myapp[3135:1280534] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication isRegisteredForRemoteNotifications]
PID: 3135, TID: 1280534, Thread name: (none), Queue name: NSOperationQueue 0x14306f9b0 (QOS: UTILITY), QoS: 17
Backtrace:
4   Preply                              0x00000001008990b4 -[PWNotificationManagerCompatiOS10 getRemoteNotificationStatusWithCompletion:] + 220
5   Preply                              0x000000010087644c +[PWPushNotificationsManagerCommon getRemoteNotificationStatus] + 264
6   Preply                              0x000000010087060c -[PWAppOpenRequest requestDictionary] + 564
7   Preply                              0x000000010089ec30 -[PWCachedRequest initWithRequest:] + 136
8   Preply                              0x0000000100885940 __39-[PWRequestsCacheManager cacheRequest:]_block_invoke + 84
9   Foundation                          0x000000018644ee88 <redacted> + 16
10  Foundation                          0x00000001863908d0 <redacted> + 72
11  Foundation                          0x000000018638fcac <redacted> + 848
12  libdispatch.dylib                   0x000000010154919c _dispatch_client_callout + 16
13  libdispatch.dylib                   0x00000001015557cc _dispatch_block_invoke_direct + 232
14  libdispatch.dylib                   0x000000010154919c _dispatch_client_callout + 16
15  libdispatch.dylib                   0x00000001015557cc _dispatch_block_invoke_direct + 232
16  libdispatch.dylib                   0x00000001015556b0 dispatch_block_perform + 104
17  Foundation                          0x0000000186450750 <redacted> + 376
18  libdispatch.dylib                   0x000000010154919c _dispatch_client_callout + 16
19  libdispatch.dylib                   0x0000000101556454 _dispatch_continuation_pop + 588
20  libdispatch.dylib                   0x0000000101554d44 _dispatch_async_redirect_invoke + 628
21  libdispatch.dylib                   0x000000010155a7c8 _dispatch_root_queue_drain + 604
22  libdispatch.dylib                   0x000000010155a500 _dispatch_worker_thread3 + 136
23  libsystem_pthread.dylib             0x000000018564bfac _pthread_wqthread + 1176
24  libsystem_pthread.dylib             0x000000018564bb08 start_wqthread + 4
2018-07-25 18:35:43.380903+0300 Myapp[3135:1280799] TIC Read Status [2:0x0]: 1:57
2018-07-25 18:35:43.381015+0300 Myapp[3135:1280799] TIC Read Status [2:0x0]: 1:57
2018-07-25 18:35:47.188863+0300 Myapp[3135:1280535] Task <EB118DFB-80BC-4D55-B7BE-5B653AC334BF>.<7> finished with error - code: -1002
2018-07-25 18:35:47.189313+0300 Myapp[3135:1280230] [PW] [E] -[PWRequestManager] Sending registerDevice failed, Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSLocalizedDescription=unsupported URL, NSUnderlyingError=0x143131e50 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}}
2018-07-25 18:35:47.190852+0300 Myapp[3135:1280230] [PW] [E] -[PWPushNotificationsManagerCommon] Registered for push notifications failed
2018-07-25 18:35:47.523898+0300 Myapp[3135:1280534] TIC Read Status [24:0x0]: 1:57
2018-07-25 18:35:47.524062+0300 Myapp[3135:1280534] TIC Read Status [24:0x0]: 1:57
2018-07-25 18:36:27.250624+0300 Myapp[3135:1281002] [PW] [D] -[PWNotificationManagerCompatiOS10] NotificationCenter authorization granted: 1
2018-07-25 18:36:27.301877+0300 Myapp[3135:1280230] [Intercom] ERROR - Tried to submit a device token, but no user has been registered yet.
2018-07-25 18:36:27.314797+0300 Myapp[3135:1281015] Task <A9C42FCE-7DB6-47FF-B0F0-E4E017DA5EF5>.<8> finished with error - code: -1002
2018-07-25 18:36:27.315255+0300 Myapp[3135:1280230] [PW] [E] -[PWRequestManager] Sending registerDevice failed, Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSLocalizedDescription=unsupported URL, NSUnderlyingError=0x1430273f0 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}}
2018-07-25 18:36:27.316159+0300 Myapp[3135:1280230] [PW] [E] -[PWPushNotificationsManagerCommon] Registered for push notifications failed
2018-07-25 18:36:27.466059+0300 Myapp[3135:1281002] TIC Read Status [27:0x0]: 1:57
2018-07-25 18:36:27.466150+0300 Myapp[3135:1281002] TIC Read Status [27:0x0]: 1:57
2018-07-25 18:38:47.816714+0300 Myapp[3135:1281828] TIC Read Status [18:0x1432770b0]: 1:57
2018-07-25 18:38:47.817008+0300 Myapp[3135:1281828] TIC Read Status [18:0x1432770b0]: 1:57
2018-07-25 18:38:47.817084+0300 Myapp[3135:1281828] TIC Read Status [18:0x1432770b0]: 1:57
2018-07-25 18:38:53.935027+0300 Myapp[3135:1281879] TIC Read Status [5:0x0]: 1:57
2018-07-25 18:38:53.935180+0300 Myapp[3135:1281879] TIC Read Status [5:0x0]: 1:57
2018-07-25 18:43:00.008050+0300 Myapp[3135:1280230] Status bar could not find cached time string image. Rendering in-process.
2018-07-25 18:44:00.003251+0300 Myapp[3135:1280230] Status bar could not find cached time string image. Rendering in-process.

Android Compatibility w/ this package and react-native-firebase

Hey guys, we are using this package along with the analytics from react-native-firebase: https://github.com/invertase/react-native-firebase

The iOS implementation seems to work fine, but we are getting a warning when we attempt to use both react-native-firebase and this package, as shown in the screenshot.

image

I have both this package and react-native-firebase running and was able to send a test push to my device, just wanted to know the official thoughts on this warnring and what kind of issues it could create with sending / receiving notifications?

'pushOpened' isn't always fired

I have a requirement where I must direct the user to a single screen nested in the navigation (react-navigation) based on the userdata I receive over the push notification. I have the following code in my App.js file.

DeviceEventEmitter.addListener('pushOpened', (e) => {
    const { userdata } = e;

    if (userdata) {
        const {
            ...
        } = userdata;

        if (...) {
            let type;

            if (Type === 1) {
                ...
            } else if (Type === 2) {
                ...
            }

            if (type) {
                NavigationService.navigate('...', { item: { ... }, type });
            }
        }
    }
});

My problem does not lie in the code, it lies where this event not being fired at random and I cannot figure out a reason why.

[Android] Does it works with Android 8,9 notification channels?

I gave up to make it works with Android 8 and 9

In native Android SDK docs there is info that Notification channels work out-of-the-box.
https://www.pushwoosh.com/docs/notification-channels
I sent a push like in docs and tried to find any pushwoosh-related data in "Logcat" but I found nothing!

In react native docs - nothing about Notification Channel support!
https://www.pushwoosh.com/docs/react-native-plugin

In "pushwoosh-react-native-sample" codebase - nothing about Notification Channel support!
https://github.com/Pushwoosh/pushwoosh-react-native-sample


I use "pushwoosh-react-native-plugin==5.9.1" and got Logcat logs like this
D/Pushwoosh: [RequestManager] registerDevice response success"
Also it works with Android < 8


So, questions:

  1. Does it work with Notification Channels?
  2. And if YES - any example or documentation?

Existing app closes after installing Pushwoosh

Hi guys, I tested the package in a clean app and it works fine, however when I try to add pushwoosh-react-native-plugin to my existing app, it closes on start and never fire an error.

I suspect may be a conflict with react-native-google-analytics-bridge or react-native-firebase packages, but can't fine anything.

This is the content of my packages.json:

{
    "name": "Myapp",
    "version": "0.0.1",
    "private": true,
    "scripts": {
        "start": "node node_modules/react-native/local-cli/cli.js start",
        "test": "jest"
    },
    "dependencies": {
        "MD5": "^1.3.0",
        "moment": "^2.18.1",
        "native-base": "^2.3.2",
        "pushwoosh-react-native-plugin": "^3.1.0",
        "react": "16.0.0-alpha.12",
        "react-native": "0.48.3",
        "react-native-fetch-blob": "^0.10.8",
        "react-native-firebase": "^3.0.3",
        "react-native-google-analytics-bridge": "^5.3.3",
        "react-native-htmlview": "^0.12.0",
        "react-native-img-cache": "^1.4.0",
        "react-native-offline": "^3.1.1",
        "react-native-progress": "^3.4.0",
        "react-native-timeago": "^0.3.0",
        "react-native-video": "^2.0.0",
        "react-navigation": "^1.0.0-beta.11",
        "rn-placeholder": "^1.0.1"
    },
    "devDependencies": {
        "babel-jest": "21.0.2",
        "babel-preset-react-native": "4.0.0",
        "jest": "21.1.0",
        "react-test-renderer": "16.0.0-alpha.12"
    },
    "jest": {
        "preset": "react-native"
    }
}

More details here https://stackoverflow.com/questions/47478437/react-native-app-closes-after-installing-pushwoosh-package

v5.8.0 fails yarn install

pushwoosh-react-native-plugin: v5.8.0
OS: OSX 10.13.5
node: v10.4.0
npm: v6.1.0
yarn: v1.9.4
react-native: v0.55.4

An unexpected error occurred: "ENOTDIR: not a directory, lstat '/Users/.../node_modules/pushwoosh-react-native-plugin/src/ios/PushwooshInboxBundle.bundle/PWIInboxViewController.nib/runtime.nib'".

Build Error for android

Hello.

I'm using pushwoosh-react-native-plugin 1.2.4 for android app.
The following error has occurred

<./node_modules/pushwoosh-react-native-plugin/src/android/src/main/java/com/pushwoosh/reactnativeplugin/NotificationReceiver.java>:10: error: cannot find symbol
import com.pushwoosh.internal.utils.Log;

I think,
Log class was obfuscated on Pushwoosh Android SDK.
I cannot found Log class in pushwoosh.jar

use of undeclared identifier 'PWGDPRManager'

We are getting the following failures with version 5.6.1.

I also tested using a separate sandbox app and have the same issue.

The following occurs w/ react-native run-ios

❌  /Users/eirwin/Source/Repos/pwsandbox/node_modules/pushwoosh-react-native-plugin/src/ios/PushwooshPlugin/Pushwoosh.m:331:7: use of undeclared identifier 'PWGDPRManager'

    [[PWGDPRManager sharedManager] showGDPRConsentUI];
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



❌  /Users/eirwin/Source/Repos/pwsandbox/node_modules/pushwoosh-react-native-plugin/src/ios/PushwooshPlugin/Pushwoosh.m:335:7: use of undeclared identifier 'PWGDPRManager'

    [[PWGDPRManager sharedManager] showGDPRDeletionUI];
      ^



❌  /Users/eirwin/Source/Repos/pwsandbox/node_modules/pushwoosh-react-native-plugin/src/ios/PushwooshPlugin/Pushwoosh.m:339:19: use of undeclared identifier 'PWGDPRManager'

    callback(@[@([PWGDPRManager sharedManager].isDeviceDataRemoved)]);
      ^



❌  /Users/eirwin/Source/Repos/pwsandbox/node_modules/pushwoosh-react-native-plugin/src/ios/PushwooshPlugin/Pushwoosh.m:343:19: use of undeclared identifier 'PWGDPRManager'

    callback(@[@([PWGDPRManager sharedManager].isCommunicationEnabled)]);
                  ^



❌  /Users/eirwin/Source/Repos/pwsandbox/node_modules/pushwoosh-react-native-plugin/src/ios/PushwooshPlugin/Pushwoosh.m:347:19: use of undeclared identifier 'PWGDPRManager'

    callback(@[@([PWGDPRManager sharedManager].isAvailable)]);
                  ^



❌  /Users/eirwin/Source/Repos/pwsandbox/node_modules/pushwoosh-react-native-plugin/src/ios/PushwooshPlugin/Pushwoosh.m:351:7: use of undeclared identifier 'PWGDPRManager'

    [[PWGDPRManager sharedManager] setCommunicationEnabled:enabled completion:^(NSError *error) {
                  ^



❌  /Users/eirwin/Source/Repos/pwsandbox/node_modules/pushwoosh-react-native-plugin/src/ios/PushwooshPlugin/Pushwoosh.m:365:7: use of undeclared identifier 'PWGDPRManager'

    [[PWGDPRManager sharedManager] removeAllDeviceDataWithCompletion:^(NSError *error) {
      ^



⚠️  /Users/eirwin/Source/Repos/pwsandbox/node_modules/pushwoosh-react-native-plugin/src/ios/PushwooshPlugin/Pushwoosh.m:404:31: 'sendDeviceEventWithName:body:' is deprecated: Subclass RCTEventEmitter instead [-Wdeprecated-declarations]

        [self.bridge.eventDispatcher sendDeviceEventWithName:event body:args];
      ^

We are also seeing a similar issue w/ Android

 /Users/eirwin/Source/Repos/pwsandbox/node_modules/pushwoosh-react-native-plugin/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PushwooshPlugin.java:67: error: cannot find symbol
	private InboxUiStyleManager inboxUiInboxUiStyleManager;
	        ^
  symbol:   class InboxUiStyleManager
  location: class PushwooshPlugin
 /Users/eirwin/Source/Repos/pwsandbox/node_modules/pushwoosh-react-native-plugin/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PushwooshPlugin.java:77: error: cannot find symbol
		inboxUiInboxUiStyleManager = new InboxUiStyleManager(applicationContext);
		                                 ^
  symbol:   class InboxUiStyleManager
  location: class PushwooshPlugin
 /Users/eirwin/Source/Repos/pwsandbox/node_modules/pushwoosh-react-native-plugin/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PushwooshPlugin.java:310: error: cannot find symbol
        GDPRManager.getInstance().showGDPRConsentUI();
        ^
  symbol:   variable GDPRManager
  location: class PushwooshPlugin
 /Users/eirwin/Source/Repos/pwsandbox/node_modules/pushwoosh-react-native-plugin/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PushwooshPlugin.java:315: error: cannot find symbol
        GDPRManager.getInstance().showGDPRDeletionUI();
        ^
  symbol:   variable GDPRManager
  location: class PushwooshPlugin
 /Users/eirwin/Source/Repos/pwsandbox/node_modules/pushwoosh-react-native-plugin/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PushwooshPlugin.java:320: error: cannot find symbol
        success.invoke(GDPRManager.getInstance().isDeviceDataRemoved());
                       ^
  symbol:   variable GDPRManager
  location: class PushwooshPlugin
 /Users/eirwin/Source/Repos/pwsandbox/node_modules/pushwoosh-react-native-plugin/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PushwooshPlugin.java:325: error: cannot find symbol
       success.invoke(GDPRManager.getInstance().isCommunicationEnabled());
                      ^
  symbol:   variable GDPRManager
  location: class PushwooshPlugin
 /Users/eirwin/Source/Repos/pwsandbox/node_modules/pushwoosh-react-native-plugin/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PushwooshPlugin.java:330: error: cannot find symbol
        success.invoke(GDPRManager.getInstance().isAvailable());
                       ^
  symbol:   variable GDPRManager
  location: class PushwooshPlugin
 /Users/eirwin/Source/Repos/pwsandbox/node_modules/pushwoosh-react-native-plugin/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PushwooshPlugin.java:335: error: cannot find symbol
        GDPRManager.getInstance().setCommunicationEnabled(enable, new com.pushwoosh.function.Callback<Void, PushwooshException>() {
        ^
  symbol:   variable GDPRManager
  location: class PushwooshPlugin
 /Users/eirwin/Source/Repos/pwsandbox/node_modules/pushwoosh-react-native-plugin/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PushwooshPlugin.java:353: error: cannot find symbol
        GDPRManager.getInstance().removeAllDeviceData(new com.pushwoosh.function.Callback<Void, PushwooshException>() {
        ^
  symbol:   variable GDPRManager
  location: class PushwooshPlugin
9 errors
:pushwoosh-react-native-plugin:compileReleaseJavaWithJavac FAILED

Android: getHwid returns empty value

Hi,
Pushwoosh.getHwid returns an empty value on Android so I can’t register any devices. With 5.5.4, 5.5.5 and 5.6.2, same issue.
Any idea ?

Not able to build on android: com.google.android.gms.internal.measurement.zzw

Getting this error when trying to build on android:

AGPBI: {"kind":"error","text":"Program type already present: com.google.android.gms.internal.measurement.zzw","sources":[{}],"tool":"D8"}
:app:transformDexArchiveWithExternalLibsDexMergerForDevMinSdkDevKernelDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDevMinSdkDevKernelDebug'.
> com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/0.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/1.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/2.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/3.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/4.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/5.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/6.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/7.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/8.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/9.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/10.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/11.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/12.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/13.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/14.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/15.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/16.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/17.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/18.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/19.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/20.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/21.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/22.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/23.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/24.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/25.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/26.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/27.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/28.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/29.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/30.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/31.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/32.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/33.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/34.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/35.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/36.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/37.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/38.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/39.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/40.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/41.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/42.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/43.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/44.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/45.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/46.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/47.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/48.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/49.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/50.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/51.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/52.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/53.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/54.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/55.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/56.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/57.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/58.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/59.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/60.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/61.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/62.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/63.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/64.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/65.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/66.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/67.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/68.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/69.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/70.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/71.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/72.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/73.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/74.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/75.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/76.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/77.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/78.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/79.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/80.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/81.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/82.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/83.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/84.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/85.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/86.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/87.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/88.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/89.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/90.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/91.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/92.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/93.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/94.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/95.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/96.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/97.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/98.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/99.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/100.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/101.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/102.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/103.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/104.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/105.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/106.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/107.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/108.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/109.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/110.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/111.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/112.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/113.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/114.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/115.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/116.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/117.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/118.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/119.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/120.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/121.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/122.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/123.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/124.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/125.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/126.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/127.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/128.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/129.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/130.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/131.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/132.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/133.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/134.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/135.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/136.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/137.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/138.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/139.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/140.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/141.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/142.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/143.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/144.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/145.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/146.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/147.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/148.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/149.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/150.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/151.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/152.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/153.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/154.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/155.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/156.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/157.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/158.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/159.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/160.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/161.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/162.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/163.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/164.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/165.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/166.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/167.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/168.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/169.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/170.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/171.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/172.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/173.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/174.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/175.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/176.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/177.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/178.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/179.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/180.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/181.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/182.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/183.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/184.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/185.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/186.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/187.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/188.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/189.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/190.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/191.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/192.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/193.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/194.jar, /Projects/illum-key-app/android/app/build/intermediates/transforms/dexBuilder/devMinSdkDevKernel/debug/195.jar

I tried changing targetSdkVersion to match the app gradle 26, but still same error. Not too sure how to debug this.

"dependencies": {
		"@expo/samples": "2.1.1",
		"expo": "^31.0.2",
		"expokit": "31.0.2",
		"moment": "^2.22.2",
		"pushwoosh-react-native-plugin": "^5.9.0",
		"react": "16.5.0",
		"react-native": "https://github.com/expo/react-native/archive/sdk-31.0.0.tar.gz",
		"react-native-barcode-builder": "^1.0.5",
		"react-native-card-flip": "^1.0.4",
		"react-native-datepicker": "^1.7.2",
		"react-native-form-validator": "^0.2.0",
		"react-native-fullwidth-image": "^0.1.2",
		"react-native-modal-selector": "^1.0.0",
		"react-native-render-html": "^3.10.0",
		"react-native-slider": "^0.11.0",
		"react-native-video": "^4.0.1",
		"react-navigation": "^3.0.0",
		"react-navigation-fluid-transitions": "^0.2.73",
		"react-navigation-transitions": "^1.0.5"
	},

pushOpened event not fired on iOS

DeviceEventEmitter.addListener('pushOpened', _pushHandler);

works on Android, but I can't get it to work on iOS. I still have to use the deprecated

Pushwoosh.onPushOpen(_pushHandler);

if I want my handler to work. Registering to push still works and tapping the notification properly opens the app.

Thanks for the help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.