一个用于在 iOS 和 Android 上测试推送通知的 macOS、Linux 和 Windows 应用
</a>
❤️ Support my apps ❤️
❤️❤️❤️❤️
PushNotitication is an app used for testing push notifications on iOS and Androidcertificate and token for authentication with APNSKeep in mind: To connect to APNs you can use either Provider certificate or Authentication Token. They are different ways and Authentication Token is a new one.
Main difference: Provider certificate expires every year and needs to be regenerated (and reuploaded to your server as .p12). Authentication Token is unlimited and you don't have to recreate and reupload it.
Read more Provider Certificates
Go to Member Center
Generate Apple Push Notification service SSL (Sandbox & Production), this is now used for both sandbox and production. Download as .cer file
Double click on .cer file to install into Keychain, then export it as .p12 file
In PushNotifications, select .p12 file, fill out passphase if needed, fill out bundle id, device token, message, select environment
message must be in json format, see Creating the Remote Notification Payload
Read more Authentication Tokens
Go to Member Center
Create a Key for push notification. Download as .p8 file.
Note your key id
Note your team id on Account Membership
In PushNotifications, select .p8 file, fill out key id, team id, bundle id, device token, message, select environment
Read about Firebase Cloud Messaging
Add or select project on Firebase Console
In PushNotifications, fill out server key, device token, message
message must be in json format
If you installed the app on macOS Catalina using the .dmg file, you will probably see this window when trying to launch the app:
Just press OK and go to System Settings... -> Security & Privacy -> General tab. There you need to press the button Open Anyway.
If you have macOS Ventura or later:
In case of issues with running the app on your version of OS, it's possible to easily build it yourself.
Steps:
node on your computer (https://nodejs.org/en/)npm install in the root of downloaded/cloned projectnpm start (optional)electron-builder you need to run npm run dist. Generated files end up in the folder dist in the root of your project.As a result electron-builder will generate:
.zip, .dmg (if you build using macOS).msi (if you build using Windows).deb, .AppImage (if you build using Linux)Keep in mind: you cannot build for Windows or Linux, if you are using macOS, or vise versa. It creates installable files only for your current OS.
Khoa Pham, [email protected]
PushNotifications is available under the MIT license. See the LICENSE file for more info.
暂无开放 Issues,或尚未同步最近议题。