Giter Club home page Giter Club logo

Comments (21)

MaheshPeri19 avatar MaheshPeri19 commented on August 21, 2024 2

Really Awesome. It works fine. In addition to this, i suggest to add afterTimeout.

And also if any one is looking for custom incoming call, please add below code in NotificationBuilder.java file.

NotificationCompat.Builder builder = new NotificationCompat.Builder(context, pushNotification.content.channelKey).setCategory(Notification.CATEGORY_CALL).setFullScreenIntent(pendingIntent,true).setTimeoutAfter(30000);

And add below line in AndroidManifest.xml.

<uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" />


add soundSource parameter string in NotificationChannel for custom ringtone.
It should work like custom incoming call...
I hope it helps.

from awesome_notifications.

rafaelsetragni avatar rafaelsetragni commented on August 21, 2024 1

I do not wrote anything to work with pop up notifications, but i agree is a good idea!
Ill study what i can do about it and i give you a return about it.

from awesome_notifications.

rafaelsetragni avatar rafaelsetragni commented on August 21, 2024 1

Importance levels fixed. Please test it for me.

Remember: The channel parameters can only be defined once. After that, you need to reinstal the app to modify it or erase the channel, wait for some time and recreate it.

from awesome_notifications.

 avatar commented on August 21, 2024 1
  • 1st uninstall your app and install new one. add following line to your channel intialization.
    check Example

importance: NotificationImportance.Max

# Example

AwesomeNotifications().initialize(
        'resource://drawable/ic_launcher',
        [
          NotificationChannel(
              channelKey: ParamsArgus.CHANNEL_ID_BASIC,
              channelName: ParamsArgus.CHANNEL_NAME_BASIC,
              channelDescription: '',
              importance: NotificationImportance.Max,
              defaultPrivacy: NotificationPrivacy.Public,
              icon: 'resource://drawable/ic_launcher',
              soundSource: 'resource://raw/res_ringtone',
              enableLights: true,
              playSound: true,
              enableVibration: true),

from awesome_notifications.

 avatar commented on August 21, 2024

But it was already working in the older version "0.0.4+4". if i pass NotificationImportance.High in Importance then it's enabled in older version. it's not working in latest version. please check once old version of library. ("0.0.4+4")

from awesome_notifications.

 avatar commented on August 21, 2024

Did you check this?
And when will you release new version?

from awesome_notifications.

rafaelsetragni avatar rafaelsetragni commented on August 21, 2024

Today. I got some issues to update the firebase package for Android. They changed a lot of things.

from awesome_notifications.

joankabello avatar joankabello commented on August 21, 2024

But it was already working in the older version "0.0.4+4". if i pass NotificationImportance.High in Importance then it's enabled in older version. it's not working in latest version. please check once old version of library. ("0.0.4+4")

I tried with the old version and its not working with that too.

from awesome_notifications.

 avatar commented on August 21, 2024

add library like awesome_notifications: '0.0.4+4' in pubspec.yaml.
and uninstall app once.

from awesome_notifications.

joankabello avatar joankabello commented on August 21, 2024

add library like awesome_notifications: '0.0.4+4' in pubspec.yaml.
and uninstall app once.

I did it, on android 10, still doesn't work for me.

from awesome_notifications.

rafaelsetragni avatar rafaelsetragni commented on August 21, 2024

I guess i found whats going on:

https://developer.android.com/guide/topics/ui/notifiers/notifications#importance

After Android 8, importance is defined only on channel. Ill include the channel config for it in next release.

from awesome_notifications.

joankabello avatar joankabello commented on August 21, 2024

Importance levels fixed. Please test it for me.

Remember: The channel parameters can only be defined once. After that, you need to reinstal the app to modify it or erase the channel, wait for some time and recreate it.

Great, it works now. Thanks!

from awesome_notifications.

 avatar commented on August 21, 2024

it works now.
Thanks

from awesome_notifications.

efraespada avatar efraespada commented on August 21, 2024

@MaheshPeri19
Really interesting! What about iOS?

Right now I'm showing a simple notification with the call information and playing a ringtone sound.

from awesome_notifications.

MaheshPeri19 avatar MaheshPeri19 commented on August 21, 2024

@efraespada
I have checked in iOS. But I didn't find anything like that. Need more research on iOS.

from awesome_notifications.

efraespada avatar efraespada commented on August 21, 2024

@MaheshPeri19

I found this:
https://github.com/flutter-webrtc/callkeep

It would be super useful to integrate it with the awesome_notifications if it could prevent a notification to be displayed.

Prevent ReceivedNotification from being displayed: #91

For example, in the case of Android, the logic could show a full-screen notification (as you propose).
In iOS we should detect the notification (with the call's information) and launch callkeep.

from awesome_notifications.

MaheshPeri19 avatar MaheshPeri19 commented on August 21, 2024

@efraespada

https://pub.dev/packages/callkeep
https://pub.dev/packages/flutter_callkeep

Yes. I know that callkeep and flutter_callkeep for incoming call functionality. Before using awesome notifications, i used callkeep.

In callkeep, we have to ask unnecessary permissions like phone account permissions and other permissions. Otherwise incoming call functionality will not work.

In flutter_callkeep, answer and decline button action callbacks are not working. Our main focus is in Android. Thats why i left it.

My actual requirement is agora video calling just like skype or whatsapp. So i found awesome notifications is very useful and customized just like i suggested above.

from awesome_notifications.

 avatar commented on August 21, 2024

@MaheshPeri19
Really interesting! What about iOS?

Right now I'm showing a simple notification with the call information and playing a ringtone sound.

Doing the same but the notification is getting back to status bar within few seconds

from awesome_notifications.

rekonvald avatar rekonvald commented on August 21, 2024

Hi!I am using 0.0.5+5 version, but there is no importance type Urgent: Makes a sound and appears as a heads-up notification.

from awesome_notifications.

rekonvald avatar rekonvald commented on August 21, 2024

Thank you

from awesome_notifications.

thefdisk avatar thefdisk commented on August 21, 2024

Really Awesome. It works fine. In addition to this, i suggest to add afterTimeout.

And also if any one is looking for custom incoming call, please add below code in NotificationBuilder.java file.

NotificationCompat.Builder builder = new NotificationCompat.Builder(context, pushNotification.content.channelKey).setCategory(Notification.CATEGORY_CALL).setFullScreenIntent(pendingIntent,true).setTimeoutAfter(30000);

Where I can find this file?

from awesome_notifications.

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.