kandi background
kandi background
Explore Kits
kandi background
Explore Kits
This is related to Messaging

Popular New Releases in Messaging

dubbo-3.0.7

chore(release): publish 3.4.7

EventBus 3.3.1

5.2.6

v13.11

dubbo

dubbo-3.0.7

taro

chore(release): publish 3.4.7

EventBus

EventBus 3.3.1

celery

5.2.6

python-telegram-bot

v13.11

Popular Libraries in Messaging

Trending New libraries in Messaging

Top Authors in Messaging

1

86 Libraries

1233

2

65 Libraries

121059

3

40 Libraries

494

4

34 Libraries

2254

5

32 Libraries

3521

6

27 Libraries

2625

7

27 Libraries

16029

8

26 Libraries

1012

9

26 Libraries

2587

10

26 Libraries

14368

1

86 Libraries

1233

2

65 Libraries

121059

3

40 Libraries

494

4

34 Libraries

2254

5

32 Libraries

3521

6

27 Libraries

2625

7

27 Libraries

16029

8

26 Libraries

1012

9

26 Libraries

2587

10

26 Libraries

14368

Trending Kits in Messaging

email-marketing-solutions

Email Marketing Solutions

Mailchimp recently agreed to be acquired by Intuit for $12 billion. The company founded by Ben Chestnut and Dan Kurzius in 2001 hit possibly the highest sale amount ever of a privately bootstrapped company, and is an inspiration to all startups on building a company ground up. I found three interesting strategic decisions in Mailchimp’s journey. Mailchimp was one of the earliest providers to introduce micropayments of $5 a month in their early days. Freemium and micropayments have become a template for SaaS today. Secondly, they focused on small businesses, when most tech was geared towards the enterprise. Lastly, they pivoted the company away from just email into social media and marketing. Kudos to Ben and Dan on this fantastic journey. The $12 Billion valuation does indicate a massive potential in Email marketing! Did you know there are over 100,000 libraries in open source for email automation and marketing? You could look to build the next unicorn in email automation! kandi kit for Email Marketing Solutions showcases open source libraries across Email Marketing Automation, Core Email Platforms, Gathering and Processing Email Addresses, and engaging Email Templates.

python-personal-assistant

12 best Python AI Assistant

Since the release of Siri in 2011, voice assistants have become a new trend in mobile apps. Most of people think that creating a voice assistant like Siri and Alexa is very complicated, but it is not. So today we will see some of the best Python AI Assistant libraries. An Assistant library is a collection of routines that allow the user to build software. It is an application programming interface (API), which provides building blocks for developing software applications for a specific purpose or multiple purposes. Assistant libraries are not standalone programs. Instead, they are called from programs written in Python or other languages. Build your own Virtual AI assistant with NLP, speech analysis, command retrieval, and more. In this kit, we recommend you some of the best python AI assistant libraries available in 2022 including Mycroft Core - the Mycroft Artificial Intelligence platform; Jarvis - Personal Assistant for Linux and macOS; Kalliope - framework that will help you to create your own personal assistant.

Trending Discussions on Messaging

    Error APNS device token not set before retrieving FCM Token for Sender ID
    java.lang.NoSuchMethodError: No virtual method setSkipClientToken(Z)V in class Lcom/facebook/GraphRequest;
    How to register ServiceBusClient for dependency injection?
    uploaded an APK which has an activity,activity alias,service or broadcast receiver with intentfilter, but without 'android : exported' property set
    How to solve FirebaseError: Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore problem?
    Mandatory Consent for Admob User Messaging Platform
    MissingPluginException(No implementation found for method Messaging#requestPermission on channel firebase_messaging
    Error in retrieving notification_key for group messaging in FCM
    Firestore Push Notification "time out" error Notification doesn't always get sent
    Google AdMob new SDK setup for iOS : SKAdNetworkItems, NSUserTrackingUsageDescription, ATTrackingManager. Guideline 5.1.2 - Legal - Privacy - Data Use

QUESTION

Error APNS device token not set before retrieving FCM Token for Sender ID

Asked 2022-Mar-01 at 17:08

I am receiving messages from firebase for notifications with APNs. In firebase, I have the certificate of APNs key, with the same id in the Xcode project in Firebase that is extracted from Apple Developer.

But I don't know why this could be happening and I get this error and it is registering two tokens in the Messaging extension:

1extension AppDelegate : MessagingDelegate {
2  func messaging(_ messaging: Messaging, didReceiveRegistrationToken fcmToken: String?) {}}
3

APNS device token not set before retrieving FCM Token for Sender ID '########'. Notifications to this FCM Token will not be delivered over APNS.Be sure to re-retrieve the FCM token once the APNS device token is set.

Added what I have in the AppDelegate

1extension AppDelegate : MessagingDelegate {
2  func messaging(_ messaging: Messaging, didReceiveRegistrationToken fcmToken: String?) {}}
3import Firebase
4import MasivPushIosSdk
5
6@UIApplicationMain
7class AppDelegate: UIResponder, UIApplicationDelegate{
8
9    var firebaseToken: String = ""
10    
11    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
12
13        FirebaseApp.configure()
14        self.registerForFirebaseNotification(application: application)
15        Messaging.messaging().delegate = self
16        return true
17    }
18    
19    func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
20        Messaging.messaging().apnsToken = deviceToken
21    }
22
23    func registerForFirebaseNotification(application: UIApplication) {
24        if #available(iOS 10.0, *) {
25            // For iOS 10 display notification (sent via APNS)
26            UNUserNotificationCenter.current().delegate = self
27
28            let authOptions: UNAuthorizationOptions = [.alert, .badge, .sound]
29            UNUserNotificationCenter.current().requestAuthorization(
30                options: authOptions,
31                completionHandler: {_, _ in })
32        } else {
33            let settings: UIUserNotificationSettings =
34                UIUserNotificationSettings(types: [.alert, .badge, .sound], categories: nil)
35            application.registerUserNotificationSettings(settings)
36        }
37
38        application.registerForRemoteNotifications()
39    }
40    
41}
42
43extension AppDelegate: MessagingDelegate, UNUserNotificationCenterDelegate {
44
45//MessagingDelegate
46    func messaging(_ messaging: Messaging, didReceiveRegistrationToken fcmToken: String?) {
47        self.firebaseToken = fcmToken!
48        print("Firebase token: \(fcmToken)")
49    }
50
51    //UNUserNotificationCenterDelegate
52    func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
53        print("APNs received with: \(userInfo)")
54     }
55}
56

ANSWER

Answered 2021-Oct-26 at 05:58

This is a simulator only log. You can safely ignore it. The reason you get this is that Firebase tries to create a mapping from the FCM token to the APNS token so it can send the APNS messages to the iOS devices. However, there is no APNS token on the simulator so the mapping fails.

Try testing it on an actual device to see if you still get the error.

Source https://stackoverflow.com/questions/69485088