簡體   English   中英

未從 Amazon Pinpoint 活動傳遞的推送通知

[英]Push notification not delivered from Amazon Pinpoint Campaigns

我使用 Apple 開發人員賬戶中的生產證書創建了一個 Amazon Pinpoint 項目,我配置了我的 Xcode 項目,項目 ID 和 APS 環境等於“生產”,我將應用程序上傳到 TestFlight,然后將其安裝到我的設備中,當我使用“測試消息傳遞”Amazon Pinpoint 選項(使用特定的端點 ID 或設備令牌)發送消息,推送通知在我的設備中發送和接收,但是當我啟動活動時,一切看起來都正常,但我從未收到推送通知我的設備,無論我選擇的分段是動態的並顯示 1 個符合條件的端點(我假設是我的,因為只有我安裝了這個版本)。

任何人都可以對此有所了解嗎? 提前致謝!

PD:在開發環境中,發送到特定設備的消息和活動都有效。

更新:我研究了所有 Amazon pinpoint 文檔,但不清楚解決方案,在 AWS 論壇和 stackoverflow 的其他帖子中,我發現解決方案是使用 APNs 生產證書,我已經這樣做了。

發現function中的這行代碼didFinishLaunchingWithOptions,debug模式一直為true:

// Enabling app to receive push notification from Amazon Pinpoint
// Instantiate Pinpoint
   let pinpointConfiguration = AWSPinpointConfiguration
            .defaultPinpointConfiguration(launchOptions: launchOptions)
// Set debug mode to use APNS sandbox, make sure to toggle for your production app
   pinpointConfiguration.debug = false
   pinpoint = AWSPinpoint(configuration: pinpointConfiguration)

因此設備無法接收來自 Amazon pinpoint 的遠程通知

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM