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">ส่งข้อความ GCM ทดสอบเพื่อตรวจสอบ Google Cloud Messaging (GCM) คือการติดตั้งและใช้งานได้ ต้องใช้ API ของ Google Cloud Messaging ที่จะเปิดใช้งานผ่านคอนโซลนักพัฒนา ผลงานในอุปกรณ์หรือจำลองที่จะทำหน้าที่เป็นเซิร์ฟเวอร์ GCM
ต้องการการ:
ที่สำคัญ API - ได้รับหลังจากเปิดใช้งานการส่งข้อความของ Google Cloud ผ่านคอนโซลนักพัฒนา
Token อุปกรณ์ (อุปกรณ์ที่ไม่ซ้ำกันต่อ) - ได้รับหลังจากการเรียกร้องให้ getToken ()
วัตถุประสงค์เพียงอย่างเดียวของ app นี้สำหรับนักพัฒนาในการตรวจสอบรหัส GCM ของพวกเขาทำงานอย่างถูกต้อง
รหัสที่มาของโครงการนี้สามารถดูได้ที่ลิงค์นี้:
<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>
* หน้าจอด้านล่างแสดงโปรแกรมทั้งหมด ผลที่ได้จะถูกแสดงในข้อความที่ด้านล่างของหน้าจอ</div> <div class="show-more-end">