Comments (4)
Are you sure that app notification permission is granted?
from background_locator_fixed.
Hello, @ramazancopur thanks for replying.
Yes I have added notification permission.
In this way.
FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin =
FlutterLocalNotificationsPlugin();
flutterLocalNotificationsPlugin
.resolvePlatformSpecificImplementation<
AndroidFlutterLocalNotificationsPlugin>()
?.requestPermission();
requestPermission() here asks for the permission.
For Android 13 and higher we now need to add.
<manifest ...>
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
<application ...>
...
</application>
</manifest>
According to official android documentation: (https://developer.android.com/develop/ui/views/notifications/notification-permission),
which I had not added earlier, but after seeing your comment I reviewed my code and added POST_NOTIFICATIONS permission in my AndroidManifest.xml file for Android 13 and higher.
For the versions below Android 13 requestPermission() is working fine.
I have uploaded the app in play store after adding POST_NOTIFICATIONS permission, will check the data of firebase crashlytics and will notify you soon.
Your comment was really helpful.
Thanks,
from background_locator_fixed.
@thebeliever18 Did POST_NOTIFICATIONS permission resolve your issue?
from background_locator_fixed.
The same issue I have, resolved it?
from background_locator_fixed.
Related Issues (20)
- [background_locator_2: 2.0.6] App crashes when "startLocator()" in release mode HOT 1
- The service failed to find a loading location when the application was running in the background for a period of time
- callback function not call on some device HOT 1
- callback function not call on some device HOT 1
- A problem occurred configuring project ':background_locator_2'.
- [IOS] Background Location Update does not work in real device after App termination HOT 5
- No option to hide notification
- [iOS] Multiple calls on first run
- It doesn't call initCallback HOT 2
- Option not to stay active in the background
- Turn off Location Notification
- 'GLobals.h' file not found
- Android 14 HOT 4
- Is it still maintained? HOT 2
- Not work on testflight
- WakeLockTime=0, How can i do this?
- Example app doesn't work HOT 2
- Null check operator error
- Looking for Maintainers HOT 1
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 background_locator_fixed.