Merge pull request #30 from bmourat/fix/android-push-module-crash
Fix crash on start with push module
This commit is contained in:
Коммит
0b8f8911f9
|
@ -26,7 +26,7 @@ public class AppCenterPushPlugin extends CordovaPlugin {
|
|||
// For some reason Cordova reads SENDER_ID preference as double.
|
||||
// Because of this Pushes does not work properly,
|
||||
// as workaround SENDER_ID value should be wrapped by single quotes.
|
||||
String senderId = webView.getPreferences().getString(SENDER_ID, null).replace("'", "");
|
||||
String senderId = webView.getPreferences().getString(SENDER_ID, "").replace("'", "");
|
||||
Push.setSenderId(senderId);
|
||||
|
||||
listener = new CordovaPushListener();
|
||||
|
|
Загрузка…
Ссылка в новой задаче