{"id":22192566,"url":"https://github.com/3sidedcube/android-lightningmessage","last_synced_at":"2025-10-25T09:03:27.980Z","repository":{"id":22778638,"uuid":"26124708","full_name":"3sidedcube/Android-LightningMessage","owner":"3sidedcube","description":"The lib is deprecated and not any more supported!","archived":false,"fork":false,"pushed_at":"2018-10-15T12:11:01.000Z","size":1256,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-01-30T01:22:42.412Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/3sidedcube.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-03T15:23:09.000Z","updated_at":"2021-12-14T11:10:55.000Z","dependencies_parsed_at":"2022-08-21T12:30:47.123Z","dependency_job_id":null,"html_url":"https://github.com/3sidedcube/Android-LightningMessage","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3sidedcube%2FAndroid-LightningMessage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3sidedcube%2FAndroid-LightningMessage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3sidedcube%2FAndroid-LightningMessage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3sidedcube%2FAndroid-LightningMessage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3sidedcube","download_url":"https://codeload.github.com/3sidedcube/Android-LightningMessage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245351757,"owners_count":20601090,"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":[],"created_at":"2024-12-02T12:26:30.792Z","updated_at":"2025-10-25T09:03:27.915Z","avatar_url":"https://github.com/3sidedcube.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Storm Library - Module Message\n\nStorm is a collection of libraries that helps make mobile and desktop applications easy to create using a high quality WYSIACATWYG editor.\n\nThis module's purpose is to handle Google Cloud Messages sent via the Storm CMS.\n\n#Usage\n\n##Gradle\n\nSimply include the following for your gradle dependencies `com.3sidedcube.storm:message:0.1a`.\n\n**Note** The versioning of the library will always be as follows:\n\n`Major version.Minor version.Bug fix`\n\nIt is safe to use `+` in part of of the `Bug fix` version, but do not trust it 100%. Always use a *specific* version to prevent regression errors.\n\n##Code\n\nIn your application singleton, add the following code\n\n```java\n\nMessageSettings messageSettings = new MessageSettings.Builder(this)\n\t.projectNumber(\"xxxxxxxxxxx\")\n\t.registerListener(new RegisterListener()\n\t{\n\t\t@Override public void onDeviceRegistered(@NonNull Context context, @Nullable String token)\n\t\t{\n\t\t\tif (!TextUtils.isEmpty(token))\n\t\t\t{\n\t\t\t\tAsyncHttpClient client = new AsyncHttpClient(contentSettings.getContentBaseUrl());\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tString appId = contentSettings.getAppId();\n\t\t\t\t\tString[] appIdParts = appId.split(\"-\");\n\n\t\t\t\t\tJsonObject jsonData = new JsonObject();\n\t\t\t\t\tjsonData.addProperty(\"appId\", appIdParts[2]);\n\t\t\t\t\tjsonData.addProperty(\"token\", token);\n\t\t\t\t\tjsonData.addProperty(\"idiom\", \"android\");\n\n\t\t\t\t\tJsonEntity postData = new JsonEntity(jsonData);\n\n\t\t\t\t\tclient.post(contentSettings.getContentVersion() + \"/push/token\", postData, null);\n\t\t\t\t}\n\t\t\t\tcatch (Exception e)\n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t})\n\t.build();\n```\n\nThen in your manifest add the receiver filter\n\n```java\n\u003c!-- Push Notifications --\u003e\n\u003creceiver\n\tandroid:name=\"com.cube.storm.message.lib.receiver.MessageReceiver\"\n\tandroid:permission=\"com.google.android.c2dm.permission.SEND\"\n\u003e\n\t\u003cintent-filter\u003e\n\t\t\u003caction android:name=\"com.google.android.c2dm.intent.RECEIVE\" /\u003e\n\t\t\u003ccategory android:name=\"your.package.name\" /\u003e\n\t\u003c/intent-filter\u003e\n\u003c/receiver\u003e\n```\n\n#Documentation\n\nSee the [Javadoc](http://3sidedcube.github.io/Android-LightningMessage/) for full in-depth code-level documentation\n\n#Contributors\n\n[Callum Taylor (9A8BAD)](http://keybase.io/scruffyfox), [Tim Mathews (5C4869)](https://keybase.io/timxyz), [Matt Allen (DB74F5)](https://keybase.io/mallen), [Alan Le Fournis (067EA0)](https://keybase.io/alan3sc)\n\n#License\n\nSee LICENSE.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3sidedcube%2Fandroid-lightningmessage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3sidedcube%2Fandroid-lightningmessage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3sidedcube%2Fandroid-lightningmessage/lists"}