-
-
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
Meteor JS 1.8 Does it work? #357
Comments
I test this fork https://github.com/FishSaidNo/push la to switch to FCM on meteor 1.8 for build you have to use that for me
in /mobile-config.js add in addition to the rest
add google-services.json to the root of your meteor project be careful if you went from "raix:push" to this fork the client side configuration there is "cordovaOptions" which includes the config which was not present before do not forget that "payload" must be JSON.stringify with FCM you need to activate the FCM API https://console.developers.google.com/apis/api/fcm.googleapis.com/overview?project=XXXXXXXXXX if you want to configure FCM for ios https://medium.com/@felipepucinelli/how-to-add-push-notifications-in-your-cordova-application-using-firebase-69fac067e821
Doc |
Thanks for the speedy response. I'll see if this does it for me. |
Okay so two days of continued head smashing and I've gotten very not far at all. Does anyone have a full version of this working they could share even something in 1.7 or just with more FCM. Even the guide above although detailed is super non-linear and gets really confusing around the Android channel requirements and what I'm suppose to actually include in Push.send. I attempted to install your fork pretty unsuccessfully, really no idea how to make sure its the right version. But even on install the blurb for Push.send has JS formatting errors and doesn't compile. See the misplace brackets before query. I'm just going to list out various states I'm getting to. Adding the cordova firebase plugin breaks xCode I get weird linking errors and when I try to run android with this in place my cordova errors go crazy. Help? @raix |
@nathans7 copy what you put in client and server configuration I test and it works |
my config client startup
config server
test push
|
Okay thank you so much! Once again. Desperation setting in. |
@nathans7 this package does work.. look at this |
I have it working on Android hoping to get iOs functional but my xCode is getting errors reladed to firebase |
@nathans7 your probably getting the pods related errors, you have to setup pods in the project on ios https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/INSTALLATION.md#ios-details |
I did get some pod related issues running pod install inside my meteor local file let me build to ios finally but there's still issues with ios. Using this fork doesn't seem to allow the apn usage in ios. I've been trying to figure out a version of cordova-plugin-firebase that works with this but it seems to be pretty buggy itself. |
@nathans7 on iOS, check to see if the tokens are registering successfully in the console. Local builds on the device wont receive notifications if you are using the production certificate. Check what certificates your using, also turn the debug server on. You may get an error 8 which means delivery problem, (trying to send a notification without a production signed app). |
Well I do have push notifications work on both. FCM for android and APN for iOS but randomly my meteor builds stopped working giving me a linker issue that I had which was initially resolved running pod install inside .meteor/local/cordova-builds/platforms/ios. I can run meteor run ios-device fine but do the build and my linker issue comes back. Not sure if this is related but I had to re-install everything android related after getting the APN to work locally. And I had to re-add my ios platform to get rid of other issues. So these seem to be corrupting something in my system. |
@nathans7 what version of meteor are you running? I remember when I used an earlier version of meteor every time I ran the build it was corrupted, so I had to do a meteor reset before each new build. I am on 1.6 now so I can just run the build multiple times without resetting. But yea that sucks if you have to clear the build than you have to run a pod install every time. |
I'm running Meteor 1.8 actually. The iOs stuff might be related just directly to the packages but the android issue did require me to re-install everything. I tried an xCode re-install. Again podinstall inside .meteor/local fixes meteor run ios-device, but once I do the same build call the linker issue comes back. |
Linker issue on ld: library not found for -lGoogleToolboxForMac has always been the problem. Again locally for meteor runs I have it fixed but not for building |
Well running pod install inside the builded folder for ios seems to let me build it. Closing now fingers crossed there aren't anymore issues. If any admins want to a write up for Meteor 1.8 I feel like I hit every pitfall imagineable. And much thanks to all the speedy responses. |
@nathans7 -lGoogleToolboxForMac this error can be annoying. but pod install the cordova platform ios build folder. Then run the meteor ios build. That should take care of everything. We'll get the instructions updated. |
@nathans7 I had the same issue (meteor V 1.8), instead of reinstalling everything, try following these steps next time:
|
Do you builder android and ios at the same time? (Mac) if you have to do a meteor reset before rebuilder for android
|
So another issue. I'm hoping to upgrade to 1.8.1 for HCP issues. But the beta versions all give this error inside the gradle file when I build to android.
So the file appears to run twice? iOs seems to work fine though |
@nathans7 with meteor 1.8.1 no need for the build-extras.gradle file |
@nathans7 I trick I found to avoid having to fully upgrade your app is to just add the latest version of meteorwebapp to your cordova plugins file I have [email protected] |
@aboire hi, i'm trying to follow this #357 (comment) |
@saikatharryc I use https://github.com/FishSaidNo/push , it must be installed locally |
for anyone from google: this package ( |
Hi, Does anyone know how to resolve this error?
|
@frankwo1 |
@frankwo1 Kr Wout |
Doing this fixed my archive issues, and it is repeatable. The error is due to Cocoa Pods causing an error as a result of a few plugins, phonegap-plugin-push in my case: https://ionic.zendesk.com/hc/en-us/articles/360000170008-iOS-Build-fails-with-error-ld-library-not-found-for-lGoogleToolboxForMac- Thanks a ton! |
I've been having a nightmare getting this going so far. Just wondering if it works on either Meteor 1.7 or 1.8 I've had no luck with basically an out of the box Meteor install
The text was updated successfully, but these errors were encountered: