反应本地背景操作意图应用程序
我正在使用React本地背景操作,但是当我单击通知时,我会收到通知。默认情况下,我将在应用程序中打开画廊。我想打开我的应用。无法在单击通知时获得如何打开应用程序。
const options = {
taskName: 'Downloading',
taskTitle: 'ExampleTask title',
taskDesc: 'ExampleTask description',
taskIcon: {
name: 'ic_launcher',
type: 'mipmap',
},
color: '#ff00ff',
linkingURI: 'yourSchemeHere://chat/jane', // See Deep Linking for more info
parameters: {
delay: 15000,
},
};
没有获得如何使用链接来打开我的应用程序,而不是使用Intent Filter或其他其他内容。
I am using react native background actions but as i am getting a notification when i click on the notification. I is opening gallery in the app by default. I want to open my app. Not able to get how can i open app on click on the notification.
const options = {
taskName: 'Downloading',
taskTitle: 'ExampleTask title',
taskDesc: 'ExampleTask description',
taskIcon: {
name: 'ic_launcher',
type: 'mipmap',
},
color: '#ff00ff',
linkingURI: 'yourSchemeHere://chat/jane', // See Deep Linking for more info
parameters: {
delay: 15000,
},
};
Not getting how to use linking to open my app instead of the gallery using intent filter or something else.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了打开相应的应用程序,当用户单击“ React Antive Andive背景操作服务”通知时。
采取这两个步骤 -
在数据标签Android中:AndroidManifest.xml中的方案,也附加://)
有关更多详细信息,您可以在此处参考
https://github.com/rapsssito /反应 - 本地 - 背景#深链接
希望它能帮助您或其他人。谢谢!
快乐的编码:-)
In order to open the respective app when the user clicks on the notification of react native background action service.
Take these two steps -
in data tag android:scheme in AndroidManifest.xml and also append :// )
For more detail you can refer here
https://github.com/Rapsssito/react-native-background-actions#deep-linking
Hope it will help you or somebody else. Thanks!
Happy Coding :-)