ti.goosh | GCM/FCM module for Titanium | Notification library
kandi X-RAY | ti.goosh Summary
kandi X-RAY | ti.goosh Summary
GCM/FCM module for Titanium.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Handle a GCM intent
- Send a success token
- Sends an error to Kroll
- Register for push notifications
- Checks if available services are available
- Parse the BootIntent from the Intent
- Start the activity
- Sends a message
- Start receive service
- Schedules a job
- Unsubscribes a topic
- Submits a topic
- Unregister push notifications
- Handles a push notification
ti.goosh Key Features
ti.goosh Examples and Code Snippets
[
"cAU7A9Xo8T8:APA91bF9tkp5XeBmAdQqpemHupAhzXL9RDR727yRl9TEzl3mnQugxhaTi1POYepV74AszvlyN7dxbyJV2VJhW52m0-hWjZIfcIMmy3Zf11y0dHYgBHZ_GeAhhCpviR5CZaMUFcanq7ze"
],
"data" => [
"data" => [
"alert" => "Testing " . time(),
var TiGoosh = require('ti.goosh');
TiGoosh.registerForPushNotifications({
// The callback to invoke when a notification arrives.
callback: function(e) {
var data = JSON.parse(e.data || '');
},
// The callback invoked when you have the de
// subscribe
TiGoosh.subscribe({
topic: "/topics/myTopic",
success: function(e) {
console.log("unsub done " + e);
},
error: function(e){
console.error("error")
}
})
// unsubscribe
TiGoosh.unsubscribe({
topic: "/topics/myTopic",
success:
Community Discussions
Trending Discussions on ti.goosh
QUESTION
I use Appcelerator Titanium and I have module ti.goosh for push notification. How can I find out about notification delivery? In 'callback' I can find out about opening the notification, but I want to also know that the notification is in the device tray (for example using console.log).
...ANSWER
Answered 2019-Mar-12 at 17:45I depends on what kind of message you are sending. A FCM data message is handled by the module with the NotificationCompat.Builder
but if you are sending a normal FCM notification message the system is creating the notification and displaying it. You will only know if the notification was clicked by the user (like you already do) or if it arrived while the app was in foreground.
QUESTION
My project was compiled successfully 3 weeks ago. I'm avoiding to update appcelerator components because certain modules of my project need that specific version.
I'm not update Java (1.8 131) neither the appcelerator cli or sdk since 3 weeks ago. The SDK version i am using is 6.0.2.
I can't undestand why titanium is showing this errors now in the "building Java source files" stage:
...ANSWER
Answered 2017-Jun-26 at 18:31Have you tried cleaning the project directory before compiling? If you're using studio, just go to Project/Clean in the menu and select your project, or you can use the command line tools (http://docs.appcelerator.com/platform/latest/#!/guide/Titanium_CLI_Tasks-section-src-38931164_TitaniumCLITasks-CleanYourBuildFolder)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ti.goosh
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page