I tried to use android push plugin, which is provided as part of new playfab Unity SDK V2.
(I have updated playfab plugin, and then I applied AndroidPushPlugin for Unity 5.x)
I configured my app according this article - https://api.playfab.com/docs/push-for-android, and during testing I faced with issue - seems like application silently crashes on this line (Init method from PlayFabAndroidPlugin class in PlayFabAndroid):
AndroidPlugin = new AndroidJavaClass("com.playfab.unityplugin.PlayFabUnityAndroidPlugin");
So, as I said before - I configured my app in google services and in playfab itself, I receive success callback from LoginWithAndroidDeviceID method, and then it falls in PlayFabAndroidPlugin.Init method.
When I checked logs from device, I found these lines, which are definitely cause this issue:
I/Unity ( 8535): java.lang.ClassNotFoundException: com.playfab.unityplugin.PlayFabUnityAndroidPlugin
I/Unity ( 8535): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.playfab.unityplugin.PlayFabUnityAndroidPlugin" on path: DexPathList[dexElements=[zip file "/mnt/asec/pigbang.flex.su-1/pkg.apk"],nativeLibraryDirectories=[/mnt/asec/pigbang.flex.su-1/lib, /vendor/lib, /system/lib]]
Seems like I built my project incorrectly, or something like this, but I can't figure out, what was done wrongly.
Here is my plugin folder (may be some plugins could affect work of another one):
Also, I tried to change some lines in AndroidManifest (I saw some posts where people faced with similar problems and tried to solve them in this way):
from ".GCM.PlayFabGcmListenerService" to "com.playfab.unityplugin.GCM.PlayFabGcmListenerService"
and some other similar lines, but it doesn't help.
So, may be I forgot something obvious, or there should be done some additional steps, which wasn't mentioned before in guides. Any helpful thoughts will be appreciated.
Also, please let me know if you have updated guide for integration android push plugin (from Unity SDK V2.) or something like this.
Thanks in advance.