Been trying to get Steroids working with push notifications on Android and keep hitting a brick wall.
As far as I can see, there's no official support for https://github.com/AppGyver/PushPlugin, and the Urban Airship addon is currently iOS only.
When I set the custom plugin in the build configuration, I get some pretty nasty build errors. This is with just a freshly created and deployed steroids project, and just generally can't even get to the point where I have a build to play around with push notifications :(
There was some rumbling about the devs prioritising pushplugin around Dec 2013, but unsure if that ever actually materialised?
So I have:
steroids create pushTest
steroids deploy
...then I goto https://cloud.appgyver.com/applications/, configure my app in the android tab by adding this to the custom plugins...
[
{"source":"https://github.com/AppGyver/PushPlugin.git"}
]
Then run a build on 4.0.2. I am trying a scanner build, tried ARM, x86, and both, and keep coming back with build issues as above, or on some of the other forks ones that are a bit more vague, but I suspect those forks to be old.
So my question: Is it even possible to get push notifications working with Steroids under Android?
There's now an officially supported fork of the Push Plugin which works with the AppGyver Android Client: https://github.com/AppGyver/PushNotifications
The minimum required version for the Android client is 4.0.4-edge3.
Please see the Push Notification guide for instructions how to create the required iOS Certificates and the Google GCM API key.
Related
i have just finished coding of my android app and it is time to built it's apk but i want to create it's iOS version ipa to. i know i have to work on XCode on MAC for getting it's ipa output but i don't have any iOS device. nothing about Apple. so i want to use alternative ways like CodeMagic but i am new on development so it seems creating an ipa output will take a long time for me. in addition i didn't make any stuffs needs to be done for an iOS app can launch. for example i am using Firebase services but i only made it's android settings, didnt set anything about it's iOS version. so i have to do lots of things for creating my flutter project's iOS version and need time. at this point i have a question:
Can i built my app's iOS version after creating it's android version without make any settings for iOS? i want to built it's android apk or appbundle as soon as possible and i want to do it's iOS settings and built it's ipa later. is that possible? thaks for your helps.
Based on my experience... you'll have to setup the iOS separately to successfully build it.
For example when using firebase you'll need to add the GoogleServices file using Xcode.. or when using google maps you'll also need to add the api key on the appdelegate file.
I'm trying to deploy my first (very generic) app built using Ionic. According to the docs for deployment, I'm supposed to use some plugins. However, other sources suggest that I'm supposed to install Google's IDE called Android Studio and create an APK file.
I can't judge which approach is most valid nor if the one is an obsoleted version of the other. And we know how fast the wheels rotate in JS world...
NB. I'm confident in programming in general, I know Angular and have experience with deployments as such. In this case, I'm not looking to set up CI nor testing. I simply want my first app to be reachable through the store.
My suggestion would be to make a build: ionic cordova build android. Next sign it using the command line.
https://developer.android.com/studio/publish/app-signing.html
I am a little new to Android development.
I have a hybrid app which uses Apache cordova plugins.
I am using eclipse to generate the APK.
But when I publish the APK, the Google play store rejects it saying:
APP UPDATE REJECTED
Your APK has been rejected for containing security vulnerabilities, which violates the Malicious Behavior policy. The Alerts page has more information about how to resolve the issue. If you submitted an update, the previous version of your app is still live on Google Play.
And, when I click on the alerts page the following error shows up:
Security alert :
Your app is using a version of Apache Cordova containing one or more security vulnerabilities. Please see this Google Help Center article for details, including the deadline for fixing the app.
I have already tried the followings:
Update the android platform (cordova platform update android), but no positive results.
I could not update all the cordova plugins as I am getting errors. (wanted to know can this be the issue)
I am building this APK using the Eclipse IDE and I went through this ADT plugin release note https://developer.android.com/studio/tools/sdk/eclipse-adt.html which says: The Eclipse ADT plugin is no longer supported
Eventually I will be importing my project to Android studio but I want an app update immediately thats why still using Eclipse.
If Eclipse is the reason then I immediately need to import my app to Android studio.
I want to figure out that which one of the last two point is responsible for my app rejection.
Also, if none of these are responsible then what could be the possible reason for my app rejection.
Thanks in advance.
An APK is an APK, regardless of where you developed the code. You can write the code in Eclipse, Android Studio, or you can write the code in your favorite plain text editor. The end APK will be indistinguishable regardless of which editor you use.
The error in this case seems to be pretty clear- your version of Cordova has known vulnerabilities and you need to update that.
Run cordova platform version android to check your version. The error message you are receiving will show for anything less than 4.1.1.
The best path would probably be to upgrade to 5.x, as detailed here.
I need inputs on which plugin to use to make the ios push notification working with GCM. I am using phonegap, sencha touch 2.
I have configured GCM, provided the p12 , pem for development. My ios certificate is correct as I am able to send notification to ios through certificate generated using APNS with same p12(pem) file. Phonegap push notification library which I am using is not supporting the ios GCM notification(it supports native ios and gcm android).
I am using :
I found that there is another plugin which does offer new ios GCM integration. Here is the one I found:
https://github.com/gonzaloaune/GCMPushPlugin#readme
When I try to include the plugin in config.xml then build fails.
build fails with message as
The following build commands failed:
CompileC build/God.build/Release-iphoneos/God.build/Objects-normal/armv7/GCMPushPlugin.o God/Plugins/cordova-plugin-gcmpushplugin/GCMPushPlugin.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
I am not sure if it is failing as if plugin does not exist ? Anyway my question is which phonegap push notification plugin to use which support ios and android both through GCM.
Please share some pointers on this.
thanks,
amit
I did solved the issue and just providing a answer here for those who are facing similar issue. Problem was the phonegap push plugin which I was using was supporting only GCM and not iOS APN notifications. I did google and I found the correct plugin to use.
https://build.phonegap.com/plugins/1199
With this all Google (GCM) and ios (APN) notifications are working without any issue
https://build.phonegap.com/plugins/1199 is outdated and Adobe Phonegap build does not support it (last support till November 2016). So now using a different phonegap push notification(phonegap-plugin-push) plugin which is supported.
https://github.com/phonegap/phonegap-plugin-push
This is working with sencha touch and phonegap build. Notifications are working with GCM, APNS on ios and android
I am trying to submit my app and I keep getting this issue. I have updated the Phonegap and cordova but still get his issue. I have also regenerated the app using command line after the update but no luck.
Email below.
Dear developer,
We have discovered one or more issues with your recent delivery for .
Your delivery was successful, but you may wish to correct the
following issues in your next delivery:
Missing Push Notification Entitlement - Your app appears to include
API used to register with the Apple Push Notification service, but the
app signature's entitlements do not include the "aps-environment"
entitlement. If your app uses the Apple Push Notification service,
make sure your App ID is enabled for Push Notification in the
Provisioning Portal, and resubmit after signing your app with a
Distribution provisioning profile that includes the "aps-environment"
entitlement. See "Provisioning and Development" in the Local and Push
Notification Programming Guide for more information. If your app does
not use the Apple Push Notification service, no action is required.
You may remove the API from future submissions to stop this warning.
If you use a third-party framework, you may need to contact the
developer for information on removing the API.
Missing 64-bit support - Beginning on February 1, 2015 new iOS apps
submitted to the App Store must include 64-bit support and be built
with the iOS 8 SDK. Beginning June 1, 2015 app updates will also need
to follow the same requirements. To enable 64-bit in your project, we
recommend using the default Xcode build setting of “Standard
architectures” to build a single binary with both 32-bit and 64-bit
code.
After you’ve corrected the issues, you can use Xcode or Application
Loader to upload a new binary to iTunes Connect.
Regards,
The App Store team
Goto developer site & enable push notification In your ptovisioning profile for production , recompile with latest provisioning profile & resubmit it.
Regarding 64 bit support have you changd active architecture setting from build setting it should be standard atchitecture.
Found out that this is just a warning message. The App got accepted!
Missing Push Notification Entitlement - Did not matter as I did not use the notification functionality.
Missing 64-bit support - You have to have the latest version of phonegap
Thanks for your help guys