Comments (3)
Got it :) wasn't that hard, but I had to change GeoNotificationNotifier.java to send a JSON object to the app instead of a java object, because javascript wasn't able to convert the object string to a JSON object.
Object extraData = notification.data;
if (extraData != null) {
Gson gson = new Gson();
//convert java object to JSON format
String json = gson.toJson(extraData);
resultIntent.putExtra("geofence.notification.data", json);
}
from cordova-plugin-geofence.
Thanks for this 👍. Not sure how it even worked before.
from cordova-plugin-geofence.
Did you make a pull request of it ?
from cordova-plugin-geofence.
Related Issues (20)
- Not getting IOS Notification , but Works on android HOT 2
- Geofence notification in background is working up to android version 7 only
- Unable to install the plugin HOT 3
- repo dead? HOT 2
- It is not working with ionic 4 Cordova 9 HOT 2
- Notifications are not working on latest android version >= 8 HOT 4
- Geofence notifications are not working in background HOT 2
- Not working on ios HOT 2
- Working geofence repo HOT 3
- This is not working in cordova 8 Please add support for cordova 8 HOT 4
- XCODE 11. Swift version not supported HOT 4
- Notification not showing in Android 9+ device
- cannot find symbolimport android.support.v4.app.NotificationCompat;
- Found the mobile hotspot blocked this plugin notification.
- TypeError: Object(...) is not a function at Geofence.initialize HOT 2
- Plugin not creating Local notifications even when app is open
- xamarin Support
- Not able install and use the geofence plugin, following is the error am getting
- Not compatible with Cordova Android 11 due `android:exported` error HOT 1
- Maintained repo
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 cordova-plugin-geofence.