cost 298 ms
如何使用 react-native-push-notification 永久刪除特定通知

[英]How to remove a specific notification forever using react-native-push-notification

我目前正在使用react-native-push-notification庫在我的 React Native 應用程序中安排和接收通知。 我可以使用 cancelLocalNotification 方法取消預定的通知,但這只會取消 24 小時的通知。 我想找到一種方法來永遠刪除特定的通知,這樣它就不 ...

如何從持久通知中刪除通知圖標徽章反應本機 android

[英]How to remove notification icon badge from persistent notification react native android

我正在使用 react-native-push-notification 來顯示持久通知。 它還在應用程序圖標上顯示徽章。 徽章顯示通知的數量。 我想刪除那個徽章,有什么辦法嗎? 我曾嘗試使用第三方庫手動處理它,但沒有成功,我還在頻道中使用了 setShowBadge。 ...

當 IOS 應用程序處於后台時播放 Webrtc 音頻消息

[英]Play Webrtc Audio message when IOS app is in background

嗨,這可能與這個問題重復。 但是我沒有找到正確的答案。 我使用 react-native 開發了一個像 zello 一鍵通這樣的應用程序。我想在應用程序處於后台或被殺死時自動播放音頻消息而無需任何用戶交互。 每當任何用戶發送實時音頻消息時,我都會向 ios 應用程序發送推送通知,並在收到通知后調用 ...

android:出口: <receive com.dieam.reactnativepushnotification.modules.rnpushnotificationbooteventreceive< div><div id="text_translate"><p> 任務“:app:processReleaseMainManifest”執行失敗。</p><blockquote><p> 清單合並失敗: <strong>android:</strong>需要為元素 <receiver#com.dieam.reactnativepushnotification.modules.RNPushNotificationBootEventReceiver> 明確指定導出。 針對 Android 12 及更高版本的應用需要為android:exported指定一個明確的值,當相應的組件定義了一個 Intent 過濾器時。</p></blockquote><p> <strong>AndroidManifesr.xml</strong></p><pre> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.projectrn"> <uses-permission android:name="android.permission.INTE.NET" /> <uses-permission android:name="android.permission.VIBRATE" /> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> <application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="false" android:theme="@style/AppTheme"> <activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:exported="true"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <:-- Change the value to true to enable pop-up for in foreground on receiving remote notifications (for prevent duplicating while showing local notifications set this to false) --> <meta-data android.name="com.dieam.reactnativepushnotification:notification_foreground" android:value="false"/> <.-- Change the resource name to your App's accent color - or any other color you want --> <meta-data android.name="com.dieam:reactnativepushnotification:notification_color" android:resource="@color/white"/> <.-- or @android.color/{name} to use a standard color --> <receiver android.name="com.dieam:reactnativepushnotification:modules.RNPushNotificationActions" android.exported="false"/> <receiver android.name="com.dieam:reactnativepushnotification.modules.RNPushNotificationPublisher" /> <receiver android.name="com.dieam:reactnativepushnotification.modules.RNPushNotificationBootEventReceiver"> <intent-filter> <action android.name="android:intent.action.BOOT_COMPLETED" /> <action android.name="android:intent.action.QUICKBOOT_POWERON" /> <action android.name="com.htc:intent.action.QUICKBOOT_POWERON"/> </intent-filter> </receiver> <service android.name="com.dieam:reactnativepushnotification:modules.RNPushNotificationListenerService" android.exported="false" > <intent-filter> <action android.name="com.google.firebase.MESSAGING_EVENT" /> </intent-filter> </service></pre></div></receive>

[英]android:exported : <receive com.dieam.reactnativepushnotification.modules.RNPushNotificationBootEventReceive

任務“:app:processReleaseMainManifest”執行失敗。 清單合並失敗: android:需要為元素 &lt;receiver#com.dieam.reactnativepushnotification.modules.RNPushNotificationBootEvent ...

如何在 Expo/Laravel 中向特定用戶發送通知

[英]How to send notification to specific user in Expo/Laravel

我有一個帶有 Laravel 后端的 Expo 應用程序,我想向該應用程序發送通知。 但條件是只有特定的用戶才能收到。 我安裝了以下庫Exponent Notifications我也安裝了expo-notifications但我不知道它是如何工作的,我如何收聽通知通道以及如何從后端發送通知。 ...

React native 無法在 ios 中使用 firecloud Messaging 接收通知

[英]React native cannot receive notification using firecloud Messaging in ios

我需要你的幫助,一切看起來都很好,但我無法在我的 react-native 應用程序上收到通知。 實際設置: 在 project.xcworkspace 中,TARGETS &gt; {App Name} &gt; Signing &amp; Capabilities: 后台模式:啟用后台獲取和遠程 ...

在 useEffect 之外只調用一次函數反應原生

[英]calling a function only one time outside of useEffect react native

我有一個設置推送通知的功能,需要在用戶登錄后調用一次。這必須在 useEffect 之外,因為文檔是這樣說的。 我嘗試在用戶登錄后的組件中調用它,但是在從終止狀態打開應用程序后,該函數被調用了 3 次。 有沒有辦法將此調用限制為一個? 這是到目前為止的代碼: 一種方法是在 react 類中使 ...

有沒有辦法在遠程推送通知出現在前端之前自定義遠程推送通知?

[英]Is there a way to customize remote push notifications in react native before they are showing up on frontend?

我是 React Native 的新手,我的任務是在 React Native 中實現推送通知。 我正在使用 MS Azure 通知中心為我的 react 本機應用程序提供推送通知。 本地和遠程通知在我的應用程序上都可以正常工作,但問題是我從后端收到了一個非常基本的通知,沒有操作和圖像。 我設法在 ...

在聊天應用程序中反應本機推送通知

[英]React Native Push notification In Chat Application

目前,我正在使用 react native amplify 構建一個聊天應用程序,當兩個用戶都在線並且在同一個屏幕上時它工作正常(具體來說是堆棧屏幕),我能夠向用戶顯示新消息的推送通知使用 react-native-push-notification package (本地推送通知)。 我想為在后台 ...

如何在每次安裝時在本機反應中運行 function

[英]how to run function in react native once per installation

應用說明我正在開發反應本機提醒應用程序,我想調用 function 來提醒一天中的時間想在每次安裝時調用 function 一次,並且在用戶打開應用程序時不再調用它。 每次安裝一次使用 react-native-push-notification PouchDb 嘗試 asyncStorage 但 ...

如何使用 FCM 獲取 React Native 推送通知?

[英]How to get React Native Push Notifications using FCM?

我正在為我的 React Native 應用程序的 iOS 版本使用 React Native 推送通知,並且我正在嘗試使用 Firebase 雲消息傳遞發送測試通知。 這是我導入到我的應用程序的 PushController.js 文件中的代碼。 它正確初始化,我從 onRegister() 獲 ...

React Native中Expo獲取的APNS句柄不正確

[英]APNS handle obtained by Expo in React Native is incorrect

EXPO SDK 版本:42.0.01 開發:iOS 我們的目標:成功地從 Azure 通知中心中的測試發送工具向已注冊的物理 iPhone 發送測試通知,該 iPhone 正在運行 EXPO 應用程序的本地實例。 進展:我們能夠在不使用 3rd 方庫的情況下成功地使用 Azure 通知中心注冊物 ...

當我使用帶有 xcode 的真實 ios 設備進行測試時,react-native-push-notification 遠程不顯示

[英]react-native-push-notification remote doesn't show when I test with real ios device with xcode

我正在使用 react-native-push-notification。 我正在嘗試測試推送通知,如果我構建應用程序並將其上傳到 testflight,它會顯示遠程通知就好了,但是當我使用 xcode 在真實設備上構建它時它根本沒有反應(我正在注冊呼叫和通知令牌)。 此問題僅在IOS、androi ...

當我發送 localNotification 時 OnNotification() 函數不起作用

[英]OnNotification() function dosen't work when i send localNotification

我正在使用 react-native-push-notification 來實現推送通知,當我發送遠程通知 OnNotification() 被正確調用時,我正確地遵循了文檔,但是當我使用 PushNotification.LocalNotification() 發送 LocalNotificati ...

使用 RealmDB (MongoDB) 和 react-native-push-notification 推送通知

[英]Push Notifications with RealmDB (MongoDB) and react-native-push-notification

我正在將 Realm 用於已經非常復雜的應用程序,我想通過添加推送通知來完成它。 我已經安裝了 react-native-push-notification 並使其與 FCM (Firebase Cloud Messaging) 配合使用。 在客戶端,我確實收到來自 Firebase 的測試通知。 ...

自定義通知聲音未在 iOS 上播放以用於 react-native-push-notification

[英]Custom Notification Sound Not Playing on iOS for react-native-push-notification

我正在使用 react-native-push-notification npm package。我在創建通知通道時將路徑設置為自定義聲音,如下所示: 對於ios,我是把聲音添加到XCode的項目根文件夾中,如下: 但這不起作用,仍然播放默認聲音。 在 Android 上,自定義聲音正常工作。 ...


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