diff --git a/xwords4/android/XWords4-gcm/build.xml b/xwords4/android/XWords4-gcm/build.xml
index 5e9e3e805..0aa006fed 100644
--- a/xwords4/android/XWords4-gcm/build.xml
+++ b/xwords4/android/XWords4-gcm/build.xml
@@ -79,6 +79,9 @@
+
diff --git a/xwords4/android/scripts/gen_gcmid.sh b/xwords4/android/scripts/gen_gcmid.sh
new file mode 100755
index 000000000..486adf9ca
--- /dev/null
+++ b/xwords4/android/scripts/gen_gcmid.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+if [ -z "$GCM_SENDER_ID" ]; then
+ echo "GCM_SENDER_ID not in env"
+ exit 1
+fi
+
+cat <