{"id":18773798,"url":"https://github.com/janumedia/gcm_ane","last_synced_at":"2025-12-14T00:30:19.631Z","repository":{"id":16659228,"uuid":"19414766","full_name":"janumedia/GCM_ANE","owner":"janumedia","description":"Google Cloud Messaging / Push Notification Native Extension for Android","archived":false,"fork":false,"pushed_at":"2014-05-04T01:05:04.000Z","size":148,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-29T08:41:44.030Z","etag":null,"topics":["adobe-air","android","ane","gcm","gcm-ane","google","notification-native-extension"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/janumedia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-03T23:59:32.000Z","updated_at":"2017-10-26T04:54:36.000Z","dependencies_parsed_at":"2022-09-06T10:42:03.672Z","dependency_job_id":null,"html_url":"https://github.com/janumedia/GCM_ANE","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janumedia%2FGCM_ANE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janumedia%2FGCM_ANE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janumedia%2FGCM_ANE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janumedia%2FGCM_ANE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janumedia","download_url":"https://codeload.github.com/janumedia/GCM_ANE/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239680985,"owners_count":19679509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adobe-air","android","ane","gcm","gcm-ane","google","notification-native-extension"],"created_at":"2024-11-07T19:35:49.720Z","updated_at":"2025-12-14T00:30:19.603Z","avatar_url":"https://github.com/janumedia.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Push Notification ANE for Android\n======================================\n\nGCM_ANE - Push Notification Native Extension for Android applications using GCM (Google Cloud Messaging)\n\nThis ANE based on [Afterick's idea](http://afterisk.wordpress.com/2012/09/22/the-only-free-and-fully-functional-android-gcm-native-extension-for-adobe-air/).\n\nVersion\n---------\n\nThis is version 1.0 of this extension.\n\nExtension ID\n---------\n```\n\u003cextensionID\u003ecom.janumedia.ane.gcm\u003c/extensionID\u003e\n```\n\nUsage\n---------\n\nYou will need the Project Number as GCM_SENDER_ID from the [Google APIs Console](http://support.google.com/googleplay/android-developer/bin/answer.py?hl=en\u0026answer=2663268) where you enabled GCM.\nMore information about GCM you can start from [here](http://developer.android.com/guide/google/gcm/index.html)\n\n```\nvar gcm:GCMExtension; = new GCMExtension();\n//trace (GCMExtension.VERSION);\ngcm.addEventListener(GCMEvent.REGISTERED, handleRegistered, false, 0, true);\ngcm.addEventListener(GCMEvent.UNREGISTERED, handleUnregistered, false, 0, true);\ngcm.addEventListener(GCMEvent.MESSAGE, handleMessage, false, 0, true);\ngcm.addEventListener(GCMEvent.ERROR, handleError, false, 0, true);\ngcm.addEventListener(GCMEvent.RECOVERABLE_ERROR, handleError, false, 0, true);\ngcm.register(GCM_SENDER_ID);\n```\n\nMake sure to add this permission on your manifest file:\n\n```\n\u003c!-- App receives GCM messages. --\u003e\n\u003cuses-permission android:name=\"com.google.android.c2dm.permission.RECEIVE\" /\u003e\n\u003c!-- GCM connects to Google Services. --\u003e\n\u003cuses-permission android:name=\"android.permission.INTERNET\" /\u003e\n\u003c!-- GCM requires a Google account. --\u003e\n\u003cuses-permission android:name=\"android.permission.GET_ACCOUNTS\" /\u003e\n\u003cpermission android:name=\"air.YOUR_APP_BUNDLE_ID_HERE.permission.C2D_MESSAGE\" android:protectionLevel=\"signature\" /\u003e\n\u003cuses-permission android:name=\"air.YOUR_APP_BUNDLE_ID_HERE.permission.C2D_MESSAGE\" /\u003e\n```\nAdd inside Application tag, update YOUR_APP_BUNDLE_ID_HERE.\n\n```\n\u003cservice android:name=\"com.janumedia.ane.gcm.GCMPushIntentService\" /\u003e\n\u003creceiver android:name=\"com.janumedia.ane.gcm.GCMPushBroadcastReceiver\" android:permission=\"com.google.android.c2dm.permission.SEND\" \u003e\n\t\u003cintent-filter\u003e\n\t\t\u003caction android:name=\"com.google.android.c2dm.intent.RECEIVE\" /\u003e\n\t\t\u003caction android:name=\"com.google.android.c2dm.intent.REGISTRATION\" /\u003e\n\t\t\u003ccategory android:name=\"YOUR_APP_BUNDLE_ID_HERE\" /\u003e\n\t\u003c/intent-filter\u003e\n\u003c/receiver\u003e\n```\n\nAuthor\n---------\n\nThis ANE has been writen by [I Nengah Januartha](https://github.com/janumedia). It belongs to [JanuMedia Inc.](http://www.janumedia.com) and is distributed under the [Apache Licence, version 2.0](http://www.apache.org/licenses/LICENSE-2.0).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanumedia%2Fgcm_ane","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanumedia%2Fgcm_ane","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanumedia%2Fgcm_ane/lists"}