Sends a test GCM message to verify Google Cloud Messaging (GCM) is setup and working properly. Requires Google Cloud Messaging API to be enabled through the Developer Console. Works on a device or emulator to act as a GCM server.
REQUIRES:
API Key - received after enabling Google Cloud Messaging through the Developer Console
Device Token (unique per device) - received after call to getToken()
The only purpose of this app is for developers to verify their GCM code is working correctly.
The project source code is available at this link:
<a href="https://www.google.com/url?q=https://www.google.com/url?q%3Dhttps://gitlab.com/NightSkyDev/GCMTester.git%26sa%3DD%26usg%3DAFQjCNEzUII2F9T7yCBWerKISe7G19ZL3A&sa=D&usg=AFQjCNEL7TIOqTcvTUWd-DVwQJRNR4-A4A" target="_blank">https://gitlab.com/NightSkyDev/GCMTester.git</a>
*The screenshot below shows the entire application. The result will be displayed in a message at the bottom of the screen.
</div> <div jsname="WJz9Hc" style="display:none">Menghantar mesej ujian GCM untuk mengesahkan Google Cloud Pesanan (GCM) disediakan dan berfungsi dengan betul. Memerlukan Google Cloud Pesanan API untuk diaktifkan melalui Konsol Pemaju. Kerja Raya pada peranti atau emulator untuk bertindak sebagai pelayan GCM.
Memerlukan:
Kunci API - diterima selepas membolehkan Google Cloud Pesanan melalui Konsol Pembangun
Peranti Token (peranti setiap unik) - diterima selepas panggilan kepada getToken ()
Satu-satunya tujuan aplikasi ini adalah untuk pemaju untuk mengesahkan kod GCM mereka berfungsi dengan betul.
Kod sumber projek boleh didapati di pautan ini:
<a href="https://www.google.com/url?q=https://gitlab.com/NightSkyDev/GCMTester.git&sa=D&usg=AFQjCNEzUII2F9T7yCBWerKISe7G19ZL3A" target="_blank">https://gitlab.com/NightSkyDev/GCMTester.git</a>
* Screenshot di bawah menunjukkan keseluruhan permohonan. Hasilnya akan dipaparkan dalam mesej di bahagian bawah skrin.</div> <div class="show-more-end">