Device Id and Provisioning Profile - iphone

Is it possible to test an app which has apples push notification service enabled (APNS) on simulator? If so, where can I get the device id (UUID, it should be 40 hex characters) so that I can create a provisioning profile?
In short, I am unable to create a provisioning profile since I am unable to get the device id which is 40 hex characters. Currently I have this uuid D1648548-6C35-511B-B0D0-258808BD2026, which is only 36 including 4 hyphens.

On simulator the push notification doesn't work. You need a device.
Coming to provisioning profile, device id and device token both are 2 different hex characters. If you connect the device with the mac you can get the device id from xcode in organizer tab. This is device id which need to be added to the provisioning profile.
When you implement push notification and run that app on device you get the device token which is used as a communication with APNs and device.
Hope this help.

push notification service is not enabled by apple on simulator. u need to use a device. see apple guide about push notifcation. you will be told in detail about it
http://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html

Related

iPhone app will not run due to expired beta?

I'm not in the developer program. I can run the app fine on my iPhone, and on my friends iPhone. But when I unplug his iPhone and try to run the app is says "MYAPP beta has expired".
Anyone know how to fix this without paying apple?
Try this: Create a new user account on your Mac for your friend. Copy the Xcode project from your account to his account. Delete your Apple ID from that project copy. Have him log into his new account on your Mac, and configure it using his Apple ID. Then build the app using Xcode with his Apple ID for the personal provisioning profile, and install the app on his iPhone from his account.
Note that personal provisioning profiles might only be valid for something around one week. For longer profile expiration times on stock iOS devices, you will need to enroll in Apple's Developer Program.

Inapppurchase invalid product id - iPhone StoreKit

I'm building an iPhone app and having a really hard time testing my support for in-app purchase using StoreKit.
Specifically, I am unable to retrieve a product ID using SKProductRequest, and so I can't get far enough to even try to attempt the purchase.
Here's what I have done so far:
- Created an App in iTunes Connect
- Created an App ID will a valid Bundle ID in the Provisioning Portal, and configured it to Enable In-App Purchase (I see a green ball for this App ID)
- Created a Provisioning Profile using the App ID above for my iPhone 3GS that I use for development (iPhone is updated with the latest current firmware) and imported it into XCode
- Set the Bundle ID for my application in Info.plist to match the Bundle ID (full Bundle ID, like "com.company.myapp")
- Created an In-App purchase associated with my iPhone app above, set its ProductID to "com.company.app.feature", set the type as Consumable and marked it as "Cleared for sale". The current status is "Pending Developer Approval"
- Updated my code to use the ProductID of the in-app purchase created above when requesting Product Information using SKProductRequest
- Signed out of my iTunes Store account on my phone, and enabled In-App Purchases on the device
- Built a Debug build of my app targeted for my phone with the Provisioning Profile above
- Deployed my app on my device using XCode and tried to run the StoreKit code with the USB cable attached.
When I issue a request for the product from the store, the productsRequest:didReceiveResponse: delegate is invoked, but the productID I request shows up as invalid.
Next, I also tried to upload a binary for my app and see if that made a difference, but it didn't. The current status of my binary is "Developer Rejected", if it matters.
It has been well over 24 hours since I created the app/in-app purchase
Thinking that it might have something to do with my device, I reset an iPod touch to factory settings updated with the latest firmware. I created a provisioning profile for the iPod touch and deployed the app to it using XCode. That didn't help either - I see the same "invalidProduct" problem.
Any suggestions of what I should do next?
Here you have many possible causes of Invalid Product ID

Upload IPhone app to device instead of other app

So I'm not that familiar with the process of Provisioning profiles and certificates.
Currently I have one app I'm developing that I can upload to my device.
Now, for testing reasons, I want to write a very simple app and to upload it to my device as well. The thing is, is that I don't want to configure another app in iTunes connect and provisioning profiles, so I thought maybe it's possible just to change the bundle identifier of the second app to be the same as the first.
However, in XCode I get the following error :
"Code Sign error: The identity 'iPhone Developer' doesn't match any identity in any profile"
Any way to make this happen?
If you set the bundle identifier of the 2nd app to be the same as the 1st, the 2nd app will replace the 1st one on your phone.
If you want the ability to have both apps installed at the same time, you need a new app id.
But you don't want to create a new app id for each test project.
The idea is to recreate the Team provisioning profile available for the Company developer program (I guess you subscribed to the individual developer program).
Create a new app id with bundle identifier set to *
Create the provisioning profile associated to this app id
Download and install this generic provisioning profile
With this wildcard profile, you will be able to install any test application.
Please request a certificate to apple through your paid developer account, generate a provisioning profile and install this in mac as well as in your device. then choose your provisioning profile and build and run your app through this provision.then it will install in device. There are details in developer.apple.com regarding to this. If you feels confusion please mail me sandeep.kniit#gmail.com. i will reply you asap.

Want to check Apple push notification Service on my device?

I have created iphone application which support Apple push notification service.
I also configured the server on windows which sends my device id to apple server.
I gets device ID whenever I launch application. But still i wont get any notification from
apple server, where notifications were also send to apple server from my local windows
server.
How should I check where my APN application is going wrong? Bcoz on server side, server didnt get any error message during sending messages to APN server, also on my iphone application I have properly registered for remote notifications. But still I dont get any notifications. Please help
If your application is not working for you, iron out you problems before letting third parties test your application. If your having trouble receiving notifications it won't be any better for the testers.
As how to actually beta test your app. Go to a commercial outfit or ad hoc by:
Have all testers submit their devices UDID as listed on the "Summary" tab from the device page in the iTunes application (click "serial number" to display the UDID).
Enter all UDID's into the device list on your iTunes Connect account.
Create a new provisioning profile with all your testers devices enabled.
Export your new app provisioning profile to xCode and rebuild.
Send the provisioning profile and fresh app to your testers instruction them to drop both on iTunes to install it on their iPhone.
Really, really thank your testers for their hard work.

iphone: create provisional build then send to someone else

how can i create a provisional build and then send it to my work colleague so they can view it on their iphone?
I have there udid number if that helps
Add the udid to your devices in the provisioning portal, then generate a new provisioning profile that contains that device. Use the profile to build an adhoc distribution in XCode and send the resulting app with a copy of the provisioning profile to your client. They will drag both into itunes and will be able to install the app on said device.