question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

localnotification does not work in xiaomi phone

See original GitHub issue

I am using localnotification and it is not working on my phone. In emulator API version 23 and Android 6.0 local notification works. But in API version 30 Android 11.0 version does not work. There must be a list for this but there is not. I dont know which one is true or not. Because I dont know and Wrote here. I want to learn.

In documentation I did everything write but still there is a problem.https://developer.android.com/about/versions/11/setup-sdk. I think problem is in react-native part but I dont know.

android/build.gradle here below

buildscript {
    ext {
        buildToolsVersion = "29.0.2"
        minSdkVersion = 16
        compileSdkVersion = 29
        targetSdkVersion = 29
        googlePlayServicesVersion = "+" // default: "+"
        firebaseMessagingVersion = "+" // default: "+"
        supportLibVersion = "23.1.1" // default: 23.1.1
    }

Android studio

android {
    compileSdkVersion 30
    buildToolsVersion "30.0.2"

    defaultConfig {
        applicationId "com.example.myapplication"
        minSdkVersion 23
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"
    }

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
qasim483commented, Aug 4, 2021

This issue is happening for me to. Local notifications are working fine for android phone. I have tested from android 7 to android 11. Its only giving problem in xiaomi phone. Channel/Notification is all set. There is something else going on with xiaomi phones.

1reaction
Dallas62commented, Apr 22, 2021

Hi @oguzhan10 Please refer to channel management or provide a reproducible exemple. Regards

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flutter Local Notification Sound didn't Play on MIUI 11.0.1?
I've used package flutter_local_notifications 2.0.0+1. Is there a way to force allow sound without allow manual on setting notif in app on ...
Read more >
Xiaomi: Why is no popup displayed and no sound emitted ...
In Threema, navigate to Settings > Sound & Notifications; Select “MIUI Settings”; Open the first entry in the Chats section; Enable all settings...
Read more >
flutter_local_notifications | Flutter Package - Pub.dev
A cross platform plugin for displaying and scheduling local notifications for Flutter applications with the ability to customise for each platform.
Read more >
Resolved - Mobile Notifications - Not working ? - Unity Forum
it works perfectly if not set fire time. are there any extra steps to schedule local notification? or did I miss something? here...
Read more >
Unity Mobile Notifications Package | 1.2.1-preview
If you do this, the remote notification won't display when your app is running. If you still want to show an alert for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found