Code Monkey home page Code Monkey logo

Comments (15)

rdelrosario avatar rdelrosario commented on June 2, 2024

Are you using Xamarin Forms?

from pushnotificationplugin.

Muhammad-ahsan-mukhayyar avatar Muhammad-ahsan-mukhayyar commented on June 2, 2024

yes

from pushnotificationplugin.

rdelrosario avatar rdelrosario commented on June 2, 2024

Did you check the FAQ section:

https://github.com/CrossGeeks/PushNotificationPlugin/blob/master/docs/FAQ.md

from pushnotificationplugin.

rdelrosario avatar rdelrosario commented on June 2, 2024

Android initialization should be done on and Android Application class to be able to handle received notifications when application is closed. Since no activity exist when application is closed.

You won't receive any push notifications if application is stopped while debugging, should reopen and close again for notifications to work when app closed. This is due to the application being on an unstable state when stopped while debugging.

On some phones android background services might be blocked by some application. This is the case of ASUS Zenfone 3 that has an Auto-start manager, which disables background services by default. You need to make sure that your push notification service is not being blocked by some application like this one, since you won't receive push notifications when app is closed if so.

Also what code you have in your event block to handle notification when app closed?

from pushnotificationplugin.

Muhammad-ahsan-mukhayyar avatar Muhammad-ahsan-mukhayyar commented on June 2, 2024

now notification shows after kill the app.but when we open the application again then application crash.

from pushnotificationplugin.

rdelrosario avatar rdelrosario commented on June 2, 2024

What are you doing when opening the notification? Can you you show me the code block

from pushnotificationplugin.

Muhammad-ahsan-mukhayyar avatar Muhammad-ahsan-mukhayyar commented on June 2, 2024

CrossPushNotification.Current.OnNotificationOpened += (s, p) =>
{
System.Diagnostics.Debug.WriteLine("Opened");
foreach (var data in p.Data)
{
System.Diagnostics.Debug.WriteLine($"{data.Key} : {data.Value}");
}

  if (!string.IsNullOrEmpty(p.Identifier))
  {
      System.Diagnostics.Debug.WriteLine($"ActionId: {p.Identifier}");
  }

};

from pushnotificationplugin.

rdelrosario avatar rdelrosario commented on June 2, 2024

Where are you assigning this event?

from pushnotificationplugin.

rdelrosario avatar rdelrosario commented on June 2, 2024

Are you still having this issue?

from pushnotificationplugin.

Muhammad-ahsan-mukhayyar avatar Muhammad-ahsan-mukhayyar commented on June 2, 2024

from pushnotificationplugin.

Muhammad-ahsan-mukhayyar avatar Muhammad-ahsan-mukhayyar commented on June 2, 2024

from pushnotificationplugin.

Muhammad-ahsan-mukhayyar avatar Muhammad-ahsan-mukhayyar commented on June 2, 2024

from pushnotificationplugin.

Muhammad-ahsan-mukhayyar avatar Muhammad-ahsan-mukhayyar commented on June 2, 2024

from pushnotificationplugin.

fazil1979 avatar fazil1979 commented on June 2, 2024

No. now working fine push notification on the foreground, the background also after killing the app. Thanks,* Rendy Del Rosario*

On Tue, Jan 23, 2018 at 9:12 AM, Rendy Del Rosario @.*** > wrote: Are you still having this issue? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#32 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AXFoSzdO8GIT55lnkYiG4w__wegdWQOAks5tNVw3gaJpZM4RhWf1 .

How you have fix this issue, can you share your code, I am facing same issue. If I kill my app and then any notification come it not shows in both android and iOS

from pushnotificationplugin.

DanCodes1414 avatar DanCodes1414 commented on June 2, 2024

@Muhammad-ahsan-mukhayyar Please share the code if you don't mind

from pushnotificationplugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.