I am testing a BlackBerry app on the BB Simulator with MDS simulator. The app uses this line of code to get the BB email address and then use it as a parameter to call a webservice.
String emailAddress = Session.getDefaultInstance().getServiceConfiguration().getEmailAddress();
Then problem is that getEmailAddress method always returns: 'simulation#this.machine', and the webservice not works with that address. I havent control over bb app source code or webservice source code, so I want to configure the BB simulator or MDS simulator to return a different email address when I call: getEmailAddress.
Is that posible?
The email address of the BlackBerry Smartphone Simulator is not configurable within the simulator itself.
However, if you connect the BlackBerry Smartphone Simulator to a BlackBerry Enterprise Server it email address will change to the one specified in the BES account.
You can follow the steps here:
Connect the BlackBerry Device Simulator to a BlackBerry Enterprise Server
Apply:
BlackBerry® Enterprise Server software version 4.0 and later
BlackBerry Device Simulator 4.0 and later
Procedure:
Using the BlackBerry JDE 4.0 (or BlackBerry Device Simulator 4.0), the BlackBerry Device Simulator can be connected to an account on the BlackBerry Enterprise Server.
1)Run the BlackBerry Device Simulator from the BlackBerry JDE or from the Start menu.
2)In the BlackBerry Device Simulator, click Turn Wireless Off.
3)Open BlackBerry® Desktop Manager 4.0 or later.
4)Open BlackBerry® Device Manager 4.0 or later.
5)From the BlackBerry Device Simulator, click Simulate and select USB Connected or Serial Connected.
6)Select YES to switch to the new BlackBerry device.
7)Follow the instructions to generate a new encryption key.
8)On the Initial Plug-in: Verifying Applications dialog box, click Cancel.
9)Once the initial synchronization is complete, the enterprise activation process begins.
After the enterprise activation process is complete, you will be able to use the BlackBerry Device Simulator like a regular BlackBerry device.
Note: Additionally, you may need to remove the net_rim_sdk_simulationSB.cod file from the BlackBerry Device Simulator directory. However, do not delete this COD file because you will need to restore it if you use the BlackBerry Device Simulator with the Email Server Simulator (ESS). After doing so, delete the DMP files from the BlackBerry Device Simulator directory, start the BlackBerry Device Simulator, and repeat the steps above.
To verify that the BlackBerry Device Simulator has connected to the BlackBerry Enterprise Server using serial bypass, click the Statistics tab in BlackBerry Device Manager.
If the BlackBerry Device Simulator is connected, you should see Bypass. Expand this menu to view statistics (for example, packets sent/received).
Or
If only the Time Connected statistic appears, without the Bypass statistics, the BlackBerry Device Simulator is not connected to the BlackBerry Enterprise Server over serial bypass and the enterprise activation process cannot occur. Delete the DMP files from the BlackBerry Device Simulator directory and complete the above steps in order to remove the net_rim_sdk_simulationSB.cod file from the BlackBerry Simulator directory. Alternatively, you can attempt this procedure with a BlackBerry device to verify that your BlackBerry Enterprise Server configuration supports serial bypass.
all the best
Related
In android studio, if you connect android phone to laptop, phone gets auto selected. Now if you run your project, it runs on auto selected phone.
Is there similar functionality in xcode? Currently if i connect a device to laptop, in xcode i need to always select the connected device manually to run the project on that device.
I don't think XCode will automatically select the connected device. Before connecting the device one of the simulator is our default device. After connecting your physical device you have to change it manually.
It's also mentioned in Developer Documentation, you can check it here : https://developer.apple.com/library/archive/documentation/ToolsLanguages/Conceptual/Xcode_Overview/RunningonaDevice.html
I am working on ionic application. I am able to debug app in real android device.
So, is it possible to debug ionic app in iPhone by connecting it through USB cable from CPU?
You require an iPhone and a mac with XCode installed.
If you are building for iOS, you’ll need to sign up for an Apple
Developer account to test as a native app on an iPhone or iPad.
Unfortunately, this costs $99 per year (don’t blame us!). Once you
have an account and you have set up Xcode with your certificates to
enable device testing, you’ll want to open the Xcode project from
platforms/ios/ and do your testing from Xcode.
Source
As you have mentioned you do have an iPhone and Mac with XCode, see the steps below:
Run ionic cordova prepare ios
Copy across your platform/ios folder to your Mac
Open the XCode project on your Mac that is located in the platform/ios folder.
Select a device or target simulator in XCode and then click on the play button to start debugging.
My problem is - I work on a remote mac through Remote Desktop Connection - from a windows host.
I have my app ready on remote mac.
I have my iPod with me, connected to my windows host.
How do I get this app onto my device for testing purpose?
My access to the mac is through RDP.
I edited the rdp connection to allow local usb access to my remote mac, (remotely) hoping that my mac would see it as a device. But it didn't.
Is there any way it would see my iPod?
(I already read this and it requires mac-to-ipod direct connection.)
Or is there any other path I can get my app package on my device for testing through windows machine?
Firstly you will have to add your iPod to the developer portal if you haven't already. Next you can do a build and archive which will export your app into organiser. Click on the app version in organiser and click the distribute button and make sure you select ad-hoc distribution. This will give you a .app packaged version of your app which can then be sent across to your windows machine from your remote desktop where you can then drag it into iTunes and install it on your iPod.
If you are testing lots of different builds of your app over a short space of time then i would suggest using test flight, which can be found easily when googled. It allows you to upload versions of your app through and ad-hoc .app package which ca then be installed across all your devices using the test flight app on your phone. I would only recommend doing this if you are doing lots of builds and testing on lots of devices though.
Hope this helps
Sam
I am trying to upload my iPhone app to my iPhone. I'm running Xcode and OS X on a VMWare virtual machine. Even though iTunes recognizes the iPhone when it's plugged in (implying that the USB connection between the virtual machine and the iPhone is working fine), no matter what I do, Xcode does not recognize the device.
The error is:
Xcode cannot run using the selected device.
No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination.
Ideas?
'No provisioned devices' implies that you did not add your device to the provisioning portal, or you dont have the proper provisions and certificates installed.
Xcode and iOS are VERY strict about code signing, and so apps will not install on any device (besides the simulator) without the proper certificates and provisioning profiles. They're very easy to make, and only require an apple developer account available for $100.
From the device side:
Plug In your device, enter the organizer, then select your device and click the plus button in the organizer. It will ask for login credentials, then if all goes well, will add your device to your developer portal and possibly generate a wildcard provision.
From the computer side:
Enter the apple developer member center. Click 'iOS provisioning portal' and apply for and download the proper certifications. Then drag those certifications onto the xcode application icon and it will install them in your keychain and move them to the proper place within the organizer.
Right now i develop ipad application in vmware macos X image. Is it possible to deploy application on real device and debug it in vmware image?
It doesnt matter if you use vmware or a real mac, as long as the xcode organizer recognizes the device when you attach it to an usb port.
To deploy an application on a real device you need developer certificates from apple. (You need to pay the $99 to them to be a registered iphone developer to get them). You can then register your device at developer.apple.com and you can run applications on it which you have signed with your certificate.
If the device is jailbroken it can be done without proper certificates, but I have never done that.