Comments (34)
This may be obvious/unrelated, but you might want to check and make sure you haven't deleted or moved your .p12 file.
I was experiencing the same problem and eventually realized that I had deleted the .p12 from my file system. The app does not appear to validate (at least in a way that is visible to the user) that the file still exists. I replaced the .p12 and everything was good again.
from pushnotifications.
Hi @alexgarciaju
I added validation to checking the iOS device token. On your screenshot you have special characters, which might be the cause of the not responding loader. Even if the issue if different, at least the app will let you know that the device token is not valid. Check it out here: https://github.com/onmyway133/PushNotifications/releases/tag/1.7.2
from pushnotifications.
Hi @wilsoncampusano
Yes, great catch. It might be the reason of the stuck loading UI.
from pushnotifications.
The issue is most definitely with node-apn
. The library is not maintained as it's for now. The option is the fork, maintained by Parse community @parse/node-apn
. But it doesn't work with Electron
. So, for now we cannot fix the issue.
from pushnotifications.
Hi guys
I've solved the issue.
Please, check out a new release:
https://github.com/onmyway133/PushNotifications/releases/tag/1.7.7
Now it will show this error message and won't proceed with the request:
from pushnotifications.
Hi @alexxgarci
Which version of the app are you using?
from pushnotifications.
I download the last version, 1.7.1
from pushnotifications.
@alexgarciaju
On Catalina I tested this functionality right now. Didn't get this issue and notification arrives on my iPhone.
Can you attach a screenshot of stuck loader?
from pushnotifications.
from pushnotifications.
@alexgarciaju
It's hard to say what might cause it. Have you tried sending notifications with a simple payload like that?
{
"aps":{
"alert":"Hello"
}
}
Because if it was a wrong device token, it would tell you so. Maybe the request isn't being sent at all, the issue with the app on your specific macOS version.
from pushnotifications.
Hi, I'm facing the same issue as mentioned above. I am using the .p12 certificate and on clicking send, the loader gets stuck. I have a Mac OS Mojave 10.14.6 and sending the notification on an iOS 11.1.4 device
from pushnotifications.
Hi @alexxgarci @deepjyot
Can you please install v. 1.7.0 and try it? And let us know if it works or not?
It was built on macOS Mojave.
from pushnotifications.
Hi @Ariandr I have installed the v1.7.0 but I still face the same issue
from pushnotifications.
@deepjyot Thanks for your feedback. At this point I don't have any ideas how we can reproduce this misbehavior.
I will try to update node-apn
which we use under the hood, maybe it has something to do with the issue.
I will let you know if any fixes are available.
from pushnotifications.
Hi, same here. Stuck on loading using .p12 certificate on Mojave 10.14.6. I tried both v1.7.0 and v1.7.1
from pushnotifications.
Hi @romain64
I see. It might be specific to this particular version of macOS (Mojave 10.14.6).
from pushnotifications.
Hi, same issue for me. Mojave 10.14.4, v1.7.1. Tried with different internet connections, because for the first time I used proxy, same result, gets stuck on sending.
P.S. tried on Windows 10, v1.7.1 same thing, so maybe something with node-apn
?
from pushnotifications.
Hi @RusYus
Yes, it's my guess as well, that the issue is with node-apn
. I tried to switch to the parse
community fork of that library, but it didn't work (https://github.com/parse-community/node-apn).
The problem is that I cannot reproduce the issue neither on my Windows machine nor on Mac.
I will try one more time when I have time.
from pushnotifications.
The tokens I get from iOS does not have dash, colon or underscore.
from pushnotifications.
I have downloaded the latest release for macOS still facing the same issue, and notification is not getting delivered on device.
Even if I enter wrong device token it still gets stuck at loading does not throw any error
from pushnotifications.
I have downloaded the latest release for macOS still facing the same issue, and notification is not getting delivered on device.
Even if I enter wrong device token it still gets stuck at loading does not throw any error
How do you generate your p12 file ? What steps did you follow ?
from pushnotifications.
I have downloaded the latest release for macOS still facing the same issue, and notification is not getting delivered on device.
Even if I enter wrong device token it still gets stuck at loading does not throw any error
How do you generate your p12 file ? What steps did you follow ?
There is no problem with the p12 file.
I used the same file with nwPusher it worked without issues.
https://github.com/noodlewerk/NWPusher
from pushnotifications.
I set up my iPhone app for push and was able to successfully send pushes to it a few days ago.
Now I'm using a different Mac and using the same app am unable to send pushes it it - I get the same behaviour as mentioned above. The non working Mac is also Mojave 10.14.6 as somebody else reported. What is node-apn? Some 3rd party library that is being used? If that is not working then is the app not usable with a Mac from Mojave 10.14.6 onwards? i.e. there's no point in upgrading to Catalina in an attempt to get things working?
from pushnotifications.
Hi @mungbeans
Yes, node-apn
is a library used under the hood.
I believe it depends not on the Mac OS version, but on your network connection factors. And in some rare cases the current node-apn
libary cannot handle your network requests properly.
For me, the app works on both Mojave and Catalina at work and at home (on different machines).
Also, 99% of users don't have the described issue. You can try to switch to another network.
from pushnotifications.
Hi @mungbeans
Yes,node-apn
is a library used under the hood.
I believe it depends not on the Mac OS version, but on your network connection factors. And in some rare cases the currentnode-apn
libary cannot handle your network requests properly.
For me, the app works on both Mojave and Catalina at work and at home (on different machines).Also, 99% of users don't have the described issue. You can try to switch to another network.
Hi @Ariandr
What do you mean by switch to another network? Do you mean a different Wifi/ethernet network I'm using to connect to the internet?
from pushnotifications.
@mungbeans
Yes, exactly. I mean a different Internet connection.
I'm not sure it will help, but it's worth a try.
The issue doesn't depend on the Mac OS version as far as I can tell.
from pushnotifications.
I've got two Macs both connected to the same (Wifi) network.
My iMac, which is Mojave 10.14.6, is the one which hangs trying to send the push, my MacBook, which is Mojave 10.14.6 Beta, does not hang.
So its not the internet connection, and unless the Beta is working while the non-beta isn't, which I guess is unlikely, its not the OS version neither.
Are there any experiments you might like me to perform seeing as I have a working and non working Mac simultaneously, that might indicate where the problem might be?
from pushnotifications.
Hi @mungbeans
First of all, can you tell me the model of your mac machine on which the app gets stuck? Maybe it has something to do with the internals and the network (WiFi) module which is installed. I think it's unlikely, but if it happens to a small number of users, it might be the case.
Unfortunately, I don't have any particular tests/experiments in mind which can help us understand the problem.
Although, having said that, can you please install this version I attached? it contains updated dependencies and it has Open dev tools
menu item. It shows the console. Can you please compare the output of consoles between the two machines you have?
https://github.com/onmyway133/PushNotifications/releases/tag/1.8.0-beta
from pushnotifications.
I have the same problem on last release version.
Mac os 10.15.4 (19E287)
from pushnotifications.
the version of 1.8.0-beta, will crash on macOS 10.15.4
from pushnotifications.
Hi @caolsen
Great point. Seems legit!
I'll try to add the check to make sure the chosen file exists.
from pushnotifications.
FWIW, I was getting this "Loading..." message having moved my auth key p8 file. Even when I attached to the p8 in the new location, it persisted with the "Loading..." message. I finally discovered that re-entering all the key id, team id, and device id seemed to have reset something an the "Loading..." message finally went away. In case this helps anyone else...
from pushnotifications.
I have the same problem on last release version.
Mac os 10.15.6 (19G2021)
Version 1.8.0-beta Says that it's a malware : “Push Notifications” will damage your computer. You should move it to the Bin. Report malware to Apple to protect other users
from pushnotifications.
I ran into a similar problem today. The reason is that the p8 file's name wasn't correct. I downloaded the file through Free Download Manager and it got the file's name as "download" so I had to add ".p8" at the end of it. Push Notifications got stuck at loading when I tried to send a notification.
After downloading it with Chrome and got the correct file name. It worked.
from pushnotifications.
Related Issues (20)
- Voip Notification issue HOT 4
- 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.