Comments (10)
Coming to say the same:
Ti SDK 6.1.2 and I get this error:
08-08 12:42:41.679: E/AndroidRuntime(3078): java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1962]: 101 could not load needed library 'libstlport_shared.so' for 'libnl.vanvianen.android.gcm.so' (load_library[1117]: Library 'libstlport_shared.so' not found)
from gcmpush.
I will autorespond: there is a fork updated with 6.x
https://github.com/skypanther/gcmpush/tree/master/dist
from gcmpush.
@mcvendrell The module from the link you've provided works just fine w/ Ti SDK 6+, however I'm experiencing an issue when the Push Notification does not show up when the app is closed/background (even if I can see some console logs regarding that the push notification message was received). Do you know by chance what can cause that problem? Thanks! 👍
from gcmpush.
Hi @vasilestefirta . I have no issues with this module. Works well for me, no matter if app is closed or backgrounded.
Just be sure that the expected payload from the server is right (if you are building the payload manually)
from gcmpush.
@mcvendrell thanks for confirming that! May I ask you if you generated the GCM api key using the Google Developers Console or Firebase Cloud Messaging console (which is a replacement for GCM, you can see the alert message on this page - https://developers.google.com/cloud-messaging/) ?
I created my GCM key using Firebase console and I wonder if that's the problem, since I saw an open issue regarding FCM support for this module:
from gcmpush.
I used the new FCM
from gcmpush.
Interesting! Do you mind sharing your implementation for gcm.registerPush()
method and your <android>...</android>
section from your project's tiapp.xml
file? I would really appreciate that! 🙏
from gcmpush.
Of course, nothing special (GCMsender... is the name for the FCM id):
gcm.registerPush({ senderId: Alloy.CFG.GCMsenderNotifId, notificationSettings: { smallIcon: 'notify.png', // Place icon in platform/android/res/drawable/ largeIcon: 'notify.png', // Same vibrate: true, // Whether the phone should vibrate sound: 'default', }, success: deviceTokenSuccess, // Success returns event.registrationId error: deviceTokenError, // Error returns event.error callback: receivePushMessage // Callback returns event.data });
And nothing in the tiapp.xml, this module doesn't need it.
from gcmpush.
@mcvendrell Thanks! It looks like the issue was happening because of the data I was sending from the server. I was sending text
instead of message
🙂 Fixed it and now it works just fine!
from gcmpush.
@vasilestefirta that's why I warn about be sure on the payload. Excellent.
from gcmpush.
Related Issues (20)
- Can't install the module HOT 2
- google.sent_time expected String -> crash HOT 8
- Error: Alloy is not defined HOT 1
- Module not compatible with SDK 5.4.0 ?? HOT 4
- FCM compatibility HOT 15
- registerPush called twice HOT 3
- compiled module HOT 2
- Titanium sdk 6.0.0 support? HOT 46
- Exception en Google Play Store
- Notification Push when app is closed and I want launch a specific function. HOT 1
- library "libstlport_shared.so" not found with 6.0.x sdks HOT 6
- Remove USE_CREDENTIALS from timodule.xml
- Click listener on notifications in android HOT 10
- Not support for Titanium sdk 6.3.0 ? HOT 2
- Failed to package application running version 1.6 and with titanium sdk 6.1.3
- Using Titanium SDK 7.0.0 GA and module version 2.0
- Support for Android O
- Android O crash
- Android notification does not appear in the android device notification center if the android:targetSdkVersion="26" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gcmpush.