Agasper / unity-android-notifications

Unity3D Plugin for Android local notifications with example project
Other
555 stars 184 forks source link

Passing string containing Emoji crashes Android #111

Open wasedaigo opened 6 years ago

wasedaigo commented 6 years ago

Android 5.1.1 Device GalaxyS6

Passing strings containing Emoji characters (like 💦) as arguments of SendNotification() crashes the app.

E/CRASH   (31609): pid: 31609, tid: 31656, name: UnityMain  >>> net.blockbros.sekkyouojisan <<<
V/BroadcastQueue( 3558): [background] Process cur broadcast BroadcastRecord{3d884594 u0 null} DELIVERED for app ProcessRecord{3ec8a1d4 31609:net.blockbros.myapp/u0a473}
D/ApplicationPolicy( 3558): isStatusBarNotificationAllowedAsUser: packageName = net.blockbros.sekkyouojisan,userId = 0
V/ApplicationPolicy( 3558): isApplicationStateBlocked userId 0 pkgname net.blockbros.sekkyouojisan
V/NotificationService( 3558): pkg=net.blockbros.sekkyouojisan canInterrupt=false intercept=true
E/CRASH   (31609):  #12  pc 001ce328  /data/app/net.blockbros.sekkyouojisan-1/lib/arm/libunity.so (AndroidJNIBindingsHelpers::NewStringUTF(core::basic_string<char, core::StringStorageDefault<char> > const&)+184)
E/CRASH   (31609):  #13  pc 001d5e94  /data/app/net.blockbros.sekkyouojisan-1/lib/arm/libunity.so (AndroidJNI_CUSTOM_NewStringUTF(MonoString*)+156)
E/CRASH   (31609):  #21  il 00000403  at LocalNotification.SendNotification (int,long,string,string,UnityEngine.Color32,bool,bool,bool,string,string,string,LocalNotification/Action[]) [0x000fc] in /Users/Development/Daigo/myapp/Assets/Plugins/LocalNotification.cs:42
E/CRASH   (31609):  #22  il 000003bb  at NotificationManager.SetOjisanLocalNotifications () [0x00158] in /Users/Development/Daigo/myapp/Assets/Scripts/NotificationManager.cs:86
E/CRASH   (31609):  #23  il 0000006b  at TitleScene.MoveToGameScene () [0x0003e] in /Users/Development/Daigo/myapp/Assets/Scripts/TitleScene.cs:134
E/CRASH   (31609):  #24  il 0000002b  at TitleScene/<OnStartClicked>c__AnonStorey1.<>m__1 () [0x00019] in /Users/Development/Daigo/myapp/Assets/Scripts/TitleScene.cs:158
E/CRASH   (31609):  #25  il 0000005b  at StandardPopupController.Ok () [0x0002e] in /Users/Development/Daigo/myapp/Assets/Scripts/Popup/StandardPopupController.cs:64
E/CRASH   (31609):  #00  pc 000225d3  /data/app/net.blockbros.sekkyouojisan-1/lib/arm/libmono.so
E/CRASH   (31609):  #01  pc 001f7bb8  /data/app/net.blockbros.sekkyouojisan-1/lib/arm/libmono.so (mono_runtime_invoke+136)
E/CRASH   (31609):  #02  pc 00fb7d94  /data/app/net.blockbros.sekkyouojisan-1/lib/arm/libunity.so (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)+84)
E/CRASH   (31609):  #03  pc 00dc58e8  /data/app/net.blockbros.sekkyouojisan-1/lib/arm/libunity.so (MonoBehaviour::CallUpdateMethod(int)+284)
E/CRASH   (31609):  #04  pc 00a31574  /data/app/net.blockbros.sekkyouojisan-1/lib/arm/libunity.so (void BaseBehaviourManager::CommonUpdate<BehaviourManager>()+68)
E/CRASH   (31609):  #05  pc 00a3151c  /data/app/net.blockbros.sekkyouojisan-1/lib/arm/libunity.so (BehaviourManager::Update()+32)
E/CRASH   (31609):  #06  pc 00d9aad8  /data/app/net.blockbros.sekkyouojisan-1/lib/arm/libunity.so (InitPlayerLoopCallbacks()::UpdateScriptRunBehaviourUpdateRegistrator::Forward()+56)
E/CRASH   (31609):  #07  pc 00d9b718  /data/app/net.blockbros.sekkyouojisan-1/lib/arm/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)+96)
E/CRASH   (31609):  #08  pc 00d9b768  /data/app/net.blockbros.sekkyouojisan-1/lib/arm/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)+176)
E/CRASH   (31609):  #09  pc 00d9b90c  /data/app/net.blockbros.sekkyouojisan-1/lib/arm/libunity.so (PlayerLoop()+284)
E/CRASH   (31609):  #10  pc 0061ad60  /data/app/net.blockbros.sekkyouojisan-1/lib/arm/libunity.so (UnityPlayerLoop()+572)
E/CRASH   (31609):  #11  pc 0061e4a4  /data/app/net.blockbros.sekkyouojisan-1/lib/arm/libunity.so (nativeRender(_JNIEnv*, _jobject*)+52)
E/CRASH   (31609):  #12  pc 004ff21f  /data/dalvik-cache/arm/data@app@net.blockbros.sekkyouojisan-1@base.apk@classes.dex
F/MessageQueue(31609): pid: 31609, tid: 31656, name: UnityMain  >>>