Notification. SetInfo2 (Title As CharSequence, Body As CharSequence, Tag As CharSequence, Activity As Object)Similar to SetInfo. Also sets a string that can be later extracted in Activity_Resume.Title - The message title. Body - The message body. Tag - An arbitrary string that can be later extract when the user clicks on the notification. Activity - The activity to start when the user presses on the notification. Pass an empty string to start the current activity (when calling from an activity module). Example of extracting the tag: Sub Activity_Resume Dim in As Intent in = Activity.GetStartingIntent If in.HasExtra("Notification_Tag") Then Log(in.GetExtra("Notification_Tag")) 'Will log the tag End If End Sub B4A Question Notification Setinfo2 Extracting the tag problem - m643    Jun 23, 2013   (1 reaction) Hi all,
I have the following notification:
myNotification.SetInfo2("Welcome", "Welcome", "tagtest", "Main")
When the notification is fired and... Other B4A v8.0 has been released! - Erel    Mar 20, 2018   (59 reactions) change anything. Notification.SetInfo or Notification.SetInfo2 should be the last calls before you show the notification. Notification.SetInfo / SetInfo2 accept CharSequences so it can work.... Backward compatibility notes Notification.SetInfo or SetInfo2 should be the last calls before... they are now more reliable. Notification.Initialize2 - Allows to set the notification channel importance level... with targetSdkVersion 26 requirements. Push notifications and other features that cause apps to start from... B4A Library FirebaseNotifications - Push messages / Firebase Cloud Messaging (FCM) - Erel    Jun 26, 2023   (47 reactions)   tags: Fcm, Firebase, Push, Messaging .67692/ Make sure to add the Notifications snippet. You should also reference FirebaseAnalytics 2...) Log($"Message data: ${Message.GetData}"$) Dim n2 As Notification n2.Initialize2(n2.IMPORTANCE_DEFAULT) n2.Icon = "icon" n2.SetInfo(Message.GetData.Get("title"), Message.GetData.Get("body"), Main) n2.Notify(1) End Sub Sub...Updated tutorial: https://www.b4x.com/android/forum/threads/b4x-firebase-push-notifications-2023... B4A Question Clicking on the notification and running the service - Erel (first post)    May 31, 2023   (1 reaction) Better to start the Main activity and then check the notification_tag (SetInfo2).... B4A Question Get NotificationID within Activity started by Notification [SOLVED] - Erel (first post)    May 27, 2021   (1 reaction) You can get the Tag parameter (Nummer in this case): https://www.b4x.com/android/forum/threads/notification-setinfo2-extracting-the-tag-problem.30473/post-176932... B4A Question Open a link on notification click - Erel (first post)    Oct 26, 2020 You can use Notification.SetInfo2 and check for the tag value in Activity_Resume. This will allow you to avoid showing another notification.... B4A Library NB6 - Notifications Builder - Erel    Dec 25, 2023   (63 reactions)   tags: B4A Notifications NB6, Background, SDK, B4A Notifications, NotificationBuilder Class, B4A Background
For a long time there were two ways for B4A developers to show notifications:
- Simple notifications with the built-in Notification object.
- More complex notifications with barx's NotificationBuilder library. Thank you barx for all your work!!!
The notifications features changed... with the introduction of notification channels.
The built-in Notification object was rewritten in B4A v8 to work... Other Firebase Notifications & Firebase Auth Issues - Erel    Jun 17, 2018   (10 reactions)   tags: Firebase There were two issues recently with FirebaseNotifications and FirebaseAuth. Both issues were resolved. The purpose of this post is to make things clear as you will find older posts with now incorrect solutions. The correct solution is: 1. Open B4A Sdk Manager and update all recommended items (including firebase-auth). 2. Update FirebaseAuth and FirebaseAnalytics: https://www.b4x.com/android... then you should update FirebaseNotifications: https://www.b4x.com/android/forum/threads/updates-to... B4A Question Possible to understand if user coming from notification ? - Erel (first post)    Oct 31, 2018 Yes. Use Notification.SetInfo2 and see the documentation of this method.... B4i Tutorial FirebaseNotifications / Push Messages (server not required) - Erel    Jun 26, 2023   (6 reactions)   tags: Erel anywheresoftware.b4i.push. Enable push notification service. 2. Create an Apple Push Notification SSL certificate...Updated tutorial: https://www.b4x.com/android/forum/threads/b4x-firebase-push-notifications-2023.148715/ The configuration steps are still relevant. 261132706 Firebase Notifications service makes....RootPanel.Color = Colors.White NavControl.ShowPage(Page1) App.RegisterUserNotifications(True, True, True) App.RegisterForRemoteNotifications fm.Initialize("fm") End Sub Private Sub... Page: 1   2   3   4   5   6   7   |