-
-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stuck on loading screen #21
Comments
I had this issue as well on the emulator, but ran fine on a device. Are you trying to do anything with Push right away on client init? |
You need to create new certificates, I'll guide you to the readme about ios and the wiki walktrough |
@dennisharrison, @raix, |
@spencercarli, How have you determined the bare bones version of the app works? Dev certs or Prod certs? |
Bundle ID and provisioning profile are correct. I'm using dev certs Determined bare bones app works by running on my phone and sending notifications via the meteor shell. The app is super simple... created with
|
OK, can you try to clean the project in xCode or better yet can you do a meteor reset and rebuild for xCode? |
Did a meteor reset as well as deleted my local cordova build (via |
@spencercarli sorry I ment the cert/provisioning profile etc. for the app / client - are you on ios7 or 8? btw. you can connect ios 8 to your mac safari for debugging - a white screen is typically some js error - its hard to debug otherwise |
@spencercarli, |
I have exactly the same problems. see #20 |
After using the fallback client #20 i received the permission dialog and not have the "Attempting to badge the application icon but haven't received permission from the user to badge the application" warning anymore. |
@raix, @dennisharrison, |
Thanks everyone! I followed through the thread in #20 and I've got notifications working. I'm still having a couple problems but I don't think they're related to this issue anymore. Thanks for the package! |
The stuck on loading depends on a timeout with invalid data which i found on debugging. |
Hmm, 9902b8d |
That seems to be consistent with what I'm finding too. The only way I can get things to work is if I throw an alert (outside of a Meteor.startup) on the client. Otherwise I'm stuck on the loading screen |
I followed the steps at https://github.com/raix/push/wiki/iOS-Micro-Walkthrough but I am still experiencing this problem. Xcode's last debug statement is:
|
@idmontie same last statement for me. I'am sure that not all plugins loaded correct because when I'am building the project again (2-3 times) it works then. |
@raix, I was working on this more. Seems the issue arises when you have multiple cordova plugins in a single application. Put together a demo repo here: https://github.com/spencercarli/meteor-push-bug. I added notes to the readme. Have you ever seen this behavior before? |
I'm seeing the same behavior on Android - the splash screen followed by a white screen, which it hangs on - but only on 4.2.2, not on 4.1.x or 4.4.4. Built another app with just packages and narrowed it down to the Semantic-UI package (nooitaf:semantic-ui@1.6.2) and the push package - they seem to interfere with one another. If I remove the Also stripped out anything not necessary from the
Was going to use the old method of |
Not sure if/why the packages conflict |
Yeah, that didn't make much sense to me, either. I think maybe Semantic-UI was masking the issue. I just removed the Semantic-UI package from the new meteor test app I created, leaving the default packages and the push package with the
Seems like it could be a race condition, but not sure. I'm looking at that error now. Thanks for your help - appreciate it! |
For anyone else who might have an issue with getting stuck on the loading screen I used this workaround. Instead of using So on the server I have: Push.Configure({
apn: {
passphrase: 'xxxx',
certData: Assets.getText('cert.pem'),
keyData: Assets.getText('key.pem'),
},
production: false
}); and client is Push.Configure({}); Hope this can help someone trouble shoot their issues. |
Should we just load the passphrase from an untracked Asset file then? |
Thanks, I did the same and it's working. We're probably going to keep using this approach until JellyBean is reduced to single digit market share and then remove support for it. Only thing I did different was store the passphrase outside of our source repo (using Meteor Up and Meteor.settings) for security reasons - figured the key was OK to store in source code, but not both. The way we store private keys, passphrases, etc. is to use an encrypted sparse image on a Mac and share that. |
@spencercarli I'm sure this is a load order issue - did you try |
@raix yeah that's what I'm thinking. Never tried the Thanks for the package! It's working great |
I'm not sure if this is related but "Any functionality which relies on a Cordova/Phonegap plugin should wrap code in a Meteor.startup() block." https://github.com/meteor/meteor/wiki/Meteor-Cordova-Phonegap-integration |
The code in raix:push should already do this - but I think theres a load order issue - I'm not 100%, havent checked yet |
Hello, I followed all the steps above, finally #21 (comment) worked.
Also,
Unable to figure out any possible reason for this not working. |
Just guessing here but I think it's failing because the field Also, it seems like you're using |
YES! Thank you so much, @spencercarli !! |
Hi @spencercarli
I was wondering if the sound works by setting it to |
@insaneinc01 I didn't implement sounds in my app but maybe the comments in this issue could help: #9 |
Is this still an issue on the latest version? |
I've got an existing app that runs fine on iOS prior to adding this package. However, when I add
raix:push
to the app it hangs on the loading screen. The prompt to give the app permission to send push notifications never appears. The app still runs fine in the browser.In xcode output I get the logs:
active
andAttempting to badge the application icon but haven't received permission from the user to badge the application
The thing that has got me stumped is that I was able to get push notifications working on a very basic app.
I've set
Push.debug = true;
on both client and server but I'm not getting any output there.Any debugging help would be greatly appreciated! Thanks
The text was updated successfully, but these errors were encountered: