We are trying to implement Push notification on one of our apps.
For Andriod, we registered with Firebase, downloaded the google-services.json file and added it to our native/andriod directory.
On the Emulator everything works fine, but on an Andriod device the Push Registration fails with Error code 0, INVALID_PARAMETERS as given by the pushRegistrationError callback method.
For iOS, we are trying to generate the Push Certificates using the iOS Certificate wizard on the Codename One Plugin for Netbeans.
On the step where you should select Enable Push, the tick is unavailable.
We have upgraded to the Professional Subscription so the little note of Pro Feature Only is a bit weird.
Any help will be great!
You need to login again in Codename One Settings for this to work, notice your email account and pro level should appear in the Codename One Settings UI. If they don't you might be running into a known bug for which we have a fix. We will release an update to the Codename One Settings app this Friday with the fix for that bug.
Related
I have followed the steps given in http://developer.samsung.com/tv/develop/legacy-platform-library/art00121/index, and the application appears on the Smart Hub on the TV. However, when I make some changes in the application, and package it again selecting "Update the packaged files on the server", do a "Apps Sync" and run the application, the updates are not reflected.
I have tried changing the application name and version in config.xml. Only the application name changes in smart hub, but the application when opened is what was installed the first time on the TV.
If a new project is made and the same steps are followed, the new application appears on the smart hub, but an update to it has the same problem.
Am I missing something while packaging the same application for a second time?
Not sure if this is useful but I believe the device seems to cache the files. I had the same issue today and was quite frustrating.
I managed to find two solutions:
1) shut down the device and re-launch again (connect to server and the Apps Sync)
2) when you export the app in the IDE, make sure you name the package name differently + title & description need to be different too.
By doing this, Apps Sync will add another app (so you'll have two of the same app, but just click on the last one that appears in the apps list - hope that makes sense). If you want to remove the apps, simply access the widgetlist.xml which will be in the root of your server and then remove the apps references from there.
I hope that helps.
I want GUARANTEED steps to get this to work.
I've pulled my hair out on this task many times since I started doing this work 6 months ago, and the feedback from itunes and the organizer is non-existent.
I have full access, I can go into the apple dev centre and do whatever is necessary and I know my way around xcode now.
Currently, when I connect my iPhone and click applications under the iphone [on the left in the organizer] the add and remove buttons are disabled and I can't click and drag ipa files into it.
If I open itunes and click and drag my app into the applications area for my macbook, it works and overwrites the current app, but when I try to click update, then sync, it successfully syncs, but still has the button saying "update" instead of "install", and when I view the phone it says " failed to install" or some other ridiculously generic message.
I've also tried to create a new profile, but when i use the add button in the organizer to attempt to add it to my iPhone it accept the file, but doesn't shot i on the list. I click and drag and it's the same thing, no error and it looks like it'll accept it, but it doesn't show up on the list. So I can't seem to attempt to add a new profile.
BTW, The device is in the devices list and has a valid profile [and the profile has the device in the list of devices (and the UDIDs match)].
I'm looking for some solid steps to guarantee the app will be installed on the phone without these headaches.
Xcode: 4.5.1
iphone: 6.1.3
Any help you can give would be greatly appreciated. Honestly, I'm ready to quit my job because the stress this software is causing me, this is ridiculous.
(my frustration: I've had compilation errors that are resolved by restarting xcode, I've had to restart my computer to resolve profile issues, and far too many times I've had to flush everything just to deploy to the app store... I've never dealt with such a terrible awful piece of software and toolchain in my entire life [and I've used Windows and VS!])
Check out TestFlight - http://testflightapp.com
They give step by step instructions on how to distribute ad-hoc versions. Its very easy to set up.
Set up your provisioning profiles, build/archive your app, then distribute it via TestFlight.
See http://help.testflightapp.com/ for help.
Follow the Steps:
1 - Create a provision profile Distribution for your app ( don't forget to add the devices, witch will test this. Its very important because case you dont add then, they will not have permition to install the app.). After create download and double click it. Don't delete yet, you will need it to upload after.
2 - Go to your project, Build / Targets / Build Settings / Code Signing and set the provision profile you create.
3 - Build the project. If its ok, click in product, archive
4 - Click in Distribute, Save for Enterprise or Ad-Hoc Deployment. Save your .ipa
5 - Go to TestFlight Create the app and upload the build.
6 - Go to Apps Builds and click in your app.
7 - Go to Permitions and Upload the Provision Profile!! Now you can choose in this list who you want to notify about the app to download!
8 - (Optional) Go to People and create/manage your team giving the right priorities.
You should implement the SDK case you want to manage the Sessions. Its Very simple, just follow the tutorial Documentation and the sdk iOS SDK Download
Follow below steps to install .ipa file without using testflight
Extract the folder which contains files .ipa and .mobileprovision .
Open iTunes and connect your device.
Drag and drop .mobileprovision on Library->Apps group section of
iTunes.
Repeat above step with .ipa .
Sync your device and it's done.
I recently changed the following things on our Apple Dev portal. I asked this before but wasn't very clear on what I had changed.
I'm using:
- Phonegap 2.1.0
- iOS 6 min 4.3
- XCode 4.5
I am using only development certificates for testing. We aren't testing the production certificates yet.
App ID's : Enabled Production Push notifications.
Provisioning: Added a distribution entry and removed 1 device from the profile.
I also changed the Product/Bundle Name in the main target.
I downloaded the new certificates and installed them.
I get a token perfectly, it registers for notifications. I don't get an error from Apple feedback. Is there anything that I changed that would effect push notifications? Would I ever have to re-download anything but the provision profile after making changes? I'm testing on an iPhone 4, I've rebooted several times and switched notifications on/off.
I also added the AppStore build scheme if that has any effect.
Well they started working after I changed the Bundle Display name back to the original name, but I don't think that's what fixed it, I had done that before.
I am using APNS service in my universal app (iPhone/iPad) and i am not geting notifications on device. Previously i was getting notifications perfectly but now a days with the same code at server side and client, it is not working.
On server side notification status is delivered but i am not receiving it on my device.
I have checked most of the questions on stackoverflow but i was unable to find my question. one guy said that in development environment it may have delays, but my problem is that i am not receiving notifications at all.
Note: i am using sandbox environment not production.
Just in case you haven't found a solution yet, one additional thing you could check is if your device's date and time is properly set (in the OS). If your iPod, iPhone or iPad isn't set to the current date, we found that notifications are ignored silently. Of course, there are many other possible explanations as to why your service stopped working, but this is a simple thing to check when everything else appears to be fine.
Following are the things you can check
Check the entitlements while codesigning the app. (They can be seen in Xcode build log).
Check whether notifications are on for the device in the settings menu.
If you are using corporate network on the iOS device, the push notifications might be blocked. Try using a different network.
After launching the app, check the organizer for any logs with the reason why push notifications can not be enabled.
I hope some of this helps you out.
I just revoke my certificates
Uploaded new certificates deleted all provision from my organizer
and then created new provisions and installed them on my system.
At the same time I got my APNS working.
How do I take my working iPhone app and put it on my phone to test with? I dont seem to see how and my googleing doesn't turn up what I think I am looking for...
I am a registered developer and have paid my $99 already.
Would anyone know?
Note: I have already placed the same answer somewhere else for the same question.
There are some steps you need to follow to test your app on your personal iPhone. Below you can find all the steps:
Create a MAC certificate at first step.
Upload that certificate to developer account.
Open developer account at https://developer.apple.com
You can now find an option for device id in your developer account on left side.
Register your iPhone device.
It is time to create your unique identifier on developer account, download your certificate and install it on XCode organize
Now open your project and embed your unique identifier in your project.
These steps can be beneficial for all software testing gusy involved in mobile application testing.
You need to register as an Apple developer. This will cost you $99/year.
That is the only way that I know of apart from Jailbreaking your phone.
Open Xcode Organizer window and provision your device for development. This will register the device UID with Apple and install the development provisioning profile on it. If you don't have provisioning profile, Xcode will create one automatically.
Once this is done, you need to set your build to use your DEV cert to aign your app. Then you can switch the build configuration from Simulator to Device and build and run on your phone.
Did you just complie your project or you complied and Run? If you Build your project and you have no errors it means everything it's ok. The next step is to Build and Run your project or just Run your project.
If you Run your project and nothing happens it means that you have something worn in your target configuration. Did you change anything there? In the Project Tab in your XCode go to Edit Active Target Settings and check that your Base SDK and Target SDK match your iDevice SDK.
IF you don't find out what the problem is, contact me, i could help you in anything you need.