简体   繁体   English

NotificationServiceExtension 的捆绑包 ID 是 Xamarion iOS

[英]Bundle ID for NotificationServiceExtension is Xamarion iOS

I have created a NotificationServiceExtension project for Xamarin iOS project to handle the notification logic.我为 Xamarin iOS 项目创建了一个 NotificationServiceExtension 项目来处理通知逻辑。

I have got two branches one for dev which has a bundle id com.companyname.appname and a test branch which has a bundle ID com.companyname.appname.test .我有两个分支,一个用于开发,其具有捆绑 ID com.companyname.appname和具有捆绑 ID com.companyname.appname.test的测试分支。 When I try to build the project in test branch i get an error extension project, I believe its do with the bundleID naming in there.当我尝试在测试分支中构建项目时,我得到一个错误扩展项目,我相信它与其中的 bundleID 命名有关。

What should my bundle ID for NotificationService Extension in test branch be?测试分支中 NotificationService Extension 的捆绑 ID 应该是什么? com.companyname.appname.test.companynameserviceextension or com.companyname.appname.test.companyname.testserviceextension or something totally different from all these. com.companyname.appname.test.companynameserviceextensioncom.companyname.appname.test.companyname.testserviceextension或与所有这些完全不同的东西。

This is what I have found in the xamarin documentation.这是我在 xamarin 文档中找到的。

[.IMPORTANT] The Bundle Identifier for the service extension should match the Bundle Identifier of the main app with.appnameserviceextension appended to the end, For example. [.IMPORTANT] 服务扩展的 Bundle Identifier 应与主应用的 Bundle Identifier 匹配,并在末尾附加 .appnameserviceextension,例如。 if the main app had a Bundle Identifier of com.xamarin,monkeynotify.如果主应用程序的捆绑标识符为 com.xamarin,monkeynotify。 the service extension should have a Bundle Identifier of com.xamarin.monkeynotify.monkeynotifyserviceextension.服务扩展应该有一个捆绑标识符 com.xamarin.monkeynotify.monkeynotifyserviceextension。 This should automatically be set when the extension is added to the solution.这应该在将扩展添加到解决方案时自动设置。

If I understand right, if the bundle ID of your main project is:如果我理解正确,如果您的主项目的捆绑 ID 是:

com.companyname.appname.test

Then the bundle ID for NotificationService Extension should be something like:然后 NotificationService Extension 的包 ID 应该类似于:

com.companyname.appname.test.xxxxserviceextension

The bundle ID of the extension in question has to be prefixed with the bundle ID of the containing app.相关扩展的捆绑包 ID 必须以包含应用程序的捆绑包 ID 为前缀。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM