cost 219 ms
當 iPhone 配套應用程序終止時,Apple Watch 通知操作不起作用 watch OS 5.3.2

[英]Apple Watch Notification Actions not working when iPhone companion app is terminated watch OS 5.3.2

我正在開發支持手表的 iOS 應用程序,以下是我的擔憂。 觀看操作系統 - 5.3.2 和 iOS 13.1 我在手表應用程序中遇到通知操作問題。 當 iPhone 應用程序終止並且我在手表中收到通知時,如果我點擊操作,則不會發生任何事情。 我正在轉發推送通知和用戶通知操作,我正在注冊用戶通知。 ...

BroadcastReceiver上下文注冊不起作用

[英]BroadcastReceiver context registration not working

我正在一個項目中,我需要注冊一個BroadcastReceiver並通過Notification Action向其發送廣播。 請告訴我是否有明顯的地方我做錯了。 我不希望接收者在清單中注冊,因為我想擁有訪問幾個局部變量的自定義onRecieve方法。 此處提供完整代碼: https : ...

帶動作的Android通知和DropDown菜單

[英]Android Notification with Actions and a DropDown Menu

Android的谷歌應用程序有一個通知,顯示當地的天氣。 如果您在通知上向左滑動,它會顯示“時鍾圖標”-action(例如,貪睡),如下所示。 如果單擊時鍾,將打開以下下拉菜單: 這是android系統的一個功能,我想在我的應用程序中實現。 它應該通過通知操作打開,我 ...

NotificationCompat.Builder操作不起作用

[英]NotificationCompat.Builder action is not working

我正在嘗試在foreground service notification添加action 。 但是動作點擊從未觸發pending intent 。 我嘗試了以下兩種方法。 第一種方法 服務 表現 廣播接收器 但是廣播接收者從未打電話。 第二種方法 ...

BroadcastReceiver無法從通知按鈕獲取數據

[英]BroadcastReceiver does not get data from notification button

我正在嘗試使用“刪除”按鈕進行通知,通知存儲在SQLite DB中,並且在按下后,我想按ID刪除“記錄”。 首先,我得到一個通知,將其存儲到db,存儲唯一的ID並將其傳遞給創建通知的方法。 該方法很好。 然后我有一個廣播接收器,用於處理通知中的數據。 這是清單文件中的外觀。 ...

關閉 UserNotificationsUI - UNNotificationContentExtensionResponseOption

[英]Dismiss UserNotificationsUI - UNNotificationContentExtensionResponseOption

我正在設置多個本地 Notification 並且我已經設置了通知的操作數。 喜歡小睡,顯示,關閉。 在 didReceive 上 - 如果操作是小睡 - 執行小睡,然后我解除通知。 當我關閉所有其他通知時,通知中心都消失了。 如果我有兩個 Notification A 和 B 。 如果我長按並 ...

向UNNotificationCategory添加動態操作

[英]Adding Dynamic Actions to UNNotificationCategory

我目前面臨的一個問題是,我需要能夠根據隨通知發送的信息來更改UNNotificationCategory的操作。 目前,我的類別的設置與此類似: 此配置有效,但是,我需要能夠根據用戶設置更改每個類別的默認操作。 例如,在“ denyAction”中,“ deny”可能需要更改為“ r ...

通知中的第二個按鈕,我在IntentService中收到的捆綁包包含第一個按鈕的附加功能

[英]Second button from notification, the bundle I receive in IntentService contains the extras from the first button

所以這是我用於意圖的代碼: 這是我創建動作的方式: Action2調用action2PendingIntent,而action調用action1PendingIntent。 但是在我的intentService中。 我的onHandleIntent中有這個: 但是bu ...

通知動作點擊觸發功能

[英]Trigger function on notification action click

我在Kotlin中編寫了一個應用,該應用應顯示帶有操作按鈕的通知。 我有課 我們稱之為NotificationClass 此類通過fun createNotification()為我創建通知 這一切都很好。 但是我想向通知中添加一個按鈕,當單擊該按鈕時,它會觸發我的Noti ...

通知操作需要單擊兩次以執行操作

[英]Notification action need to click twice to perform action

我有三個不同動作的通知。 即呼叫,短信,貪睡。 但是,每當收到通知時,我單擊任何操作,則只會打開主要活動,而不會執行任何操作。 但是如果應用處於打開狀態,則執行操作。 如果應用程序打開 :將執行操作,並且通知將關閉。 如果應用程序未打開 :應用程序將打開,則不執行任何操作,並且通 ...


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