Is my app running on the Blackberry Simulator? - testing

I am testing a blackberry app that sends SMS messages. I would like to use the simulator for testing, but since SMS doesn't work on the simulator I would like to have an alternate code path to handle the interaction. What is the right way to detect that the app is being run under a simulator, instead of an actual device?

DeviceInfo.isSimulator()

Related

Does PushNotificationIOS work on the Simulator?

I am trying to show a notification on my react-native app using react-native-push-notifications which is based on PushNotificationsIOS that ships with React Native. The problem is that nothing happens, no error, no notification, nothing.
I am not sure whether I made an error when programming the notification, or it just doesn't work on a simulator.
Thank you!
I've figured it out.
To send local notifications, we can use the simulator. When using react-native-push-notifications, I forgot to add the configurations of the push notifications to the same component that was attempting to schedule the notifications and that is the reason why it did not work.
However, to send remote notifications we need to get the device ID, but the simulator doesn't have one because it is not a real device, for that reason we cannot receive remote notifications from a server and display them using an emulator.
Using the notification in iOS need device token,but simulator doesn't have one ,so it doesn't work.
Since Xcode 11.4 - IOS Simulator support Push Notification as well

Can an iBeacon notify a user's iphone without an app being installed?

I'm new to iBeacon's and am trying to understand one simple thing.
Can I use iBeacon to display a notification on a user's iphone without a custom app being installed?
For example, I'd like to build an app that sends out iBeacon messages to people that have an iPhone. When they get near an iPad running my app, it notifies them that they're near my "event", which of course is taking place at the location of my iPad.
Is this possible without the user having already installed another app that I've made to receive notifications of my event?
Note that I'm open to any other tech or ideas that would make this work. I know that Apple does this with their Apple Stores, but I'm guessing they can do this because they already have an app installed on the users device - probably the "AppStore" app.
You typically need an app for any iOS notifications on seeing an iBeacon. That is what Apple does for their stores.
The only exception is if you use Passbook to set up a notification trigger. But you still need the user to install your Passbook entry.

Background app crashing current app

I'm building an app that uses the camera. As many know, the camera uses a lot of memory and often throws a memory warning.
The app works well and as expected. However, when streaming Spotify in the background, my app crashes.
Is there any way to stop/pause a background app?
in iOS, every app runs in its own sandbox environment that cannot interact with other apps which are running so there is no way your app can pass on any kind of instruction (pause/stop) to other app running in background.

BlackBerry web testing

I did a small web application for using PHP, HTML, and JavaScript.
I want to test my application in BlackBerry and iPhone, but I don't have either of them.
Is there any site providing facilities, something like a live BlackBerry tester site?
For Blackberry, you can download a simulator from RIM. You want to download the smartphone simulator and also the MDS simulator, which enables the smartphone simulator to connect to websites.
You could try downloading the Firefox add-on, User Agent Switcher, and have it act like a Blackberry. Granted though, it's not a true test. But if you are looking to see how your app reacts to this, it is a good first test.
You also have access to an iPhone simulator as a registered Apple developer. But this is for the Mac OS X platform, not Windows.

How to test iphone p2p aplications?

Is there a way to test iphone OS 3.0 p2p applications?
Can I run multiple iphone simulator instances? Aperantly no.
Any help?
I put up a detailed post on how to do this a couple weeks ago, so I'll just refer you to it: http://ramin.firoozye.com/2009/06/18/debugging-peer-to-peer-and-wifi-apps-on-the-iphone/
Try to get permission from work or someplace with several computers on a LAN to run several instances. This will let you test network stuff, too.
According to this forum post you will need to test it on two real devices.
You must use 2 hardware devices for testing gamekit p2p connections.
Untested, but you should be able to run two instances of the iPhone Simulator by duplicating it..
Run the simulator as normal for phone 1.
For the second, go to /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/ and copy (not move) the application somewhere (your Desktop?). When you run the copy, it will ask where the Developer Tools are installed and the application to run. Provide this and it should run a second copy.
Also, perhaps you could test it on both your real phone and the simulator?
I found a solution:
activate tethering on your iPhone
connect your mac with the simulator on it to the phone
Now you can test the gamekit on your sim and your iPhone
(I also have internet-sharing activated on my macbook - but I think the tethering-part is important... oh, this implies that bluetooth is running on the iPhone and the mac, of course)...
I'm pretty happy I found this solution - this was a major drawback...
I try to the same test on my macbook OS5.0 and iPhone 3gs , the iPhone simulator app can see the iPhone device via the app , but can not connected ... does this problem cause the bluetooth device is unauthorized ?
install VMware seem great but too trouble...