我有具有Firebase推送通知的应用程序。
我IS_GCM_ENABLED在Xcode的Google-Service-info.plist中将密钥更改为false。
但是推送通知可以完美地工作,为什么即使我将密钥更改为false,推送通知也可以正常工作?
您能否在Google-Service-info.plist中解释我们使用这些密钥的方式
IS_GCM_ENABLED,
IS_SIGNIN_ENABLED,
IS_APPINVITE_ENABLED,
IS_ANALYTICS_ENABLED,
IS_ADS_ENABLED,
据我所知,GCM更改为FCM,为什么在Google-Service-info.plist中IS_GCM_ENABLED不使用IS_FCM_ENABLED?
为什么IS_FCM_ENABLED键在Google-Service-info.plist中不存在?
通过终端一切正常,但在源树中不起作用
这是我的pre-commit钩
#!/bin/bash
#
# hook script for swiftlint. It will triggered when you make a commit.
#
# If you want to use, type commands in your console.
# $ ln -s ../../pre-commit-swiftlint.sh .git/hooks/pre-commit
# $ chmod +x .git/hooks/pre-commit
LINT=$(which swiftlint)
if [[ -e "${LINT}" ]]; then
echo "SwiftLint Start..."
else
echo "SwiftLint does not exist, download from https://github.com/realm/SwiftLint"
exit 1
fi
RESULT=$($LINT lint --quiet)
if [ "$RESULT" == '' ]; then
printf "\e[32mSwiftLint Finished.\e[39m\n"
else
echo …Run Code Online (Sandbox Code Playgroud)