From f95db665b94d491e36abe349288e129dd45fde7c Mon Sep 17 00:00:00 2001 From: Erik Djupvik Date: Fri, 9 Jun 2017 14:21:52 +0200 Subject: [PATCH 1/2] Fix app crashing when receiving push notification in Android --- plugin.xml | 1 + src/android/colors.xml | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 src/android/colors.xml diff --git a/plugin.xml b/plugin.xml index 04b3219c6..fae5d744e 100644 --- a/plugin.xml +++ b/plugin.xml @@ -52,6 +52,7 @@ xmlns:android="http://schemas.android.com/apk/res/android"> + diff --git a/src/android/colors.xml b/src/android/colors.xml new file mode 100644 index 000000000..6f1665a52 --- /dev/null +++ b/src/android/colors.xml @@ -0,0 +1,6 @@ + + + #FFFFFF00 + #FF220022 + #FF00FFFF + \ No newline at end of file From 9eecdf9c814cad4e3588ed23276da1b76b4be438 Mon Sep 17 00:00:00 2001 From: Erik Djupvik Date: Fri, 9 Jun 2017 14:22:23 +0200 Subject: [PATCH 2/2] Copy GoogleService-Info.plist content to all locations required --- scripts/after_prepare.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/after_prepare.js b/scripts/after_prepare.js index ed0250bda..8e77bfadb 100755 --- a/scripts/after_prepare.js +++ b/scripts/after_prepare.js @@ -41,6 +41,7 @@ if (directoryExists("platforms/ios")) { try { var contents = fs.readFileSync(paths[i]).toString(); fs.writeFileSync("platforms/ios/" + name + "/Resources/GoogleService-Info.plist", contents) + fs.writeFileSync("platforms/ios/" + name + "/Resources/Resources/GoogleService-Info.plist", contents) } catch(err) { process.stdout.write(err); }