【发布时间】:2020-10-21 17:37:24
【问题描述】:
我已经在我的应用程序中通过 fastlane 设置了 Firebase 分发,并且运行良好。现在我正在设置 Firebase CloudMessaging。我遵循了谷歌记录的步骤,并且能够在从 Xcode 运行应用程序时在我的设备上接收通知。但是,当我通过 fastlane 在 Firebase 上分发我的应用时,我无法收到推送通知。
这是我在Fastfile中使用的车道:
desc "Development build"
lane :dev do
increment_version_number(
bump_type: "patch" # Automatically increment patch version number
)
build_app(scheme: "Dev",
workspace: "myapp-ios.xcworkspace",
include_bitcode: false,
output_directory: "~/builds/myapp-ios/development/",
output_name: "myapp-dev.ipa",
export_options:{
method: "ad-hoc",
provisioningProfiles: {
"com.mycompany.myapp.dev" => "match AdHoc com.mycompany.myapp.dev"
},
signingStyle: "automatic"
})
firebase_app_distribution(
app: "xxxxxx",
testers: "xxxxxxx@gmail.com",
release_notes: "DEV Build: Fastlane setup",
firebase_cli_path: "/usr/local/bin/firebase"
)
end
我还为 Xcode 中的配置启用了推送通知:
并且我正在使用的应用标识符也启用了通知。
【问题讨论】:
标签: ios firebase-cloud-messaging xcode11 fastlane