Comments (21)
@Piers12 Hi, I Managed to build it on Catalina. All I had to do is to clone the project, npm install
, npm run release
, And then use the app built in PushNotifications-darwin-x64
folder.
from pushnotifications.
@Piers12 Hi, thanks for the suggestion. I haven't tried running this on Catalina yet
from pushnotifications.
This won't run on Catalina at all, sadly.
I've disabled Gatekeeper, allowed the Mac to run Apps from unidentified sources, but it still won't launch (even with right click - open)
from pushnotifications.
What @yogevbd said unblocked me. thanks a lot!
from pushnotifications.
@yogevbd Will give that a try Thanks!
from pushnotifications.
@onmyway133 just FYI, you need to notarize the app with Apple for it to be runnable. I'm not sure if you plan on doing that, but there's a good writeup here:
https://kilianvalkhof.com/2019/electron/notarizing-your-electron-application/
I'd do it but considering you're the owner this repo it makes more sense for you to use your own Apple ID.
from pushnotifications.
For other people having this issue, if you move the app to your Applications folder and right-click -> Open you can open the app.
from pushnotifications.
@marinbenc thanks for the tip, I will do that
from pushnotifications.
@marinbenc hi, I just uploaded a notarized build https://github.com/onmyway133/PushNotifications/releases/tag/1.7.0, can you help check
Ping @Ariandr
from pushnotifications.
Hi @onmyway133
I've read the article. As I understood, electron-builder
can create unsigned .dmg
file with notarized .app
inside.
It says: Gatekeeper software seems to detect the notarized .app inside the DMG and will let users install your software without problems.
So, if you notarized the app and shared it as a .zip
, you should also be able to attach a new .dmg
file to the build artifacts section.
from pushnotifications.
@onmyway133 running this on Catalina, it still doesn't seem to open, even though running spctl --assess --verbose Push\ Notifications.app
shows it as accepted
.
I don't know much about Electron, but it's possible there's a framework in the project that Gatekeeper doesn't like.
I also noticed the bundle ID in afterSignHook.js is different from the one in package.json (it should probably be com.onmyway133.PushNotifications)
Also @Ariandr is correct, right now you can have an unsigned, unnotarized DMG as long as the .app inside is notarized.
However if you sign the DMG it has to be notarized, so make sure it's not signed.
from pushnotifications.
@Amin-Rehman @marinbenc thanks, I fixed afterSignHook appId and make new build https://github.com/onmyway133/PushNotifications/releases/tag/1.7.0
For some reason, I specified target for mac, but it does not generate dmg, @Ariandr what else should we do?
from pushnotifications.
@onmyway133
Try to modify package.json
scripts section like that.
"scripts": {
"start": "npx electron main.js",
"pack": "electron-builder --dir",
"dist": "electron-builder"
}
And then execute npm run dist
.
Also, in targets you might try to specify:
"dmg": {
"sign": false
}
It's described here: https://kilianvalkhof.com/2019/electron/notarizing-your-electron-application/
If nothing helps, I don't know. I personally didn't notarize any apps.
from pushnotifications.
@onmyway133
Also, have you checked the dist
folder after executing the command? It should contain both zip
and dmg
from pushnotifications.
@onmyway133
I've come across this article: https://medium.com/@TwitterArchiveEraser/notarize-electron-apps-7a5f988406db
Maybe you've seen it too.
from pushnotifications.
@Ariandr Hi, I read them, thanks. I checked dist
folder and there is only app
file there. About notarization, I checked with spctl
and it seems OK
Push Notifications.app: accepted
source=Developer ID
from pushnotifications.
Hi @onmyway133
I see. If I find any other possible solutions to the problem, I'll let you know.
from pushnotifications.
@onmyway133
Maybe if we build with MacOS Catalina, it will work there and it will be enough to just share app
in .zip
file.
from pushnotifications.
I haven't updated any of my devices yet to Catalina, waiting for the official release.
from pushnotifications.
@Ariandr thanks, I'm waiting for official Catalina too
from pushnotifications.
Hey guys,
In order to be able to open the app on macOS Catalina you need to install the app using .dmg
and also follow this instruction.
Check out the latest release here
from pushnotifications.
Related Issues (20)
- Voip Notification issue HOT 4
- Stuck when loading HOT 34
- Update the logic to decide if it's an alert/background notification HOT 7
- Does allow to select a .p8 file HOT 1
- Could not receive push notifications in IOS 13 but works in IOS 12 HOT 4
- Is there a way to include apns headers HOT 7
- Crash when opening on Catalina HOT 8
- Unable to select a P8 file HOT 4
- “Push Notifications” will damage your computer. You should move it to the Trash. HOT 2
- Android mode only sends "data" portion of message, not "notification" {"title" and "body"} HOT 3
- getting error HOT 1
- Wrong device token. iOS device token cannot contain special characters. HOT 1
- Cannot open on macOS 10.15.3 (Fixed) HOT 5
- (Simulator only) Wrong device token. iOS device token cannot contain special characters. It must be a string with 64 hexadecimal symbols. HOT 1
- Notifications not sent HOT 1
- Push not sent for iOS HOT 12
- Cut and Past HOT 1
- no source code? HOT 5
- Select p12 & Select p8 do not allow to select the certificate HOT 2
- Where can I find the firebase server key HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pushnotifications.