Possible to obtain phone IMEI number with flex mobile project?

Just like the title says, is it possible to obtain phone IMEI number with flex mobile project? If not, does anyone know of another method to get a unique number to identify the phone being used (on android and iphone)? I'm asking because I'm building a chat application, and I need a way to potentially ban users based on something other than an IP address.
edit: now that I think about it, an IMEI number might not be the best way, since wifi tablets may not hav an IMEI number, anyone have any other idea how I could get a number to identify a device that would already be present, because i'm afraid if its something generated by me, a simple uninstall and re-install could circumvent a ban.

If this is an Android project, you can use this ANE:
http://blog.snowflax.com/native-imei-action-script-extension-for-android/
I have verified that it does work and provides the IMEI.  For cases where there is no IMEI ( bc the device is not a mobile phone, or it uses IMSI instead ), you can just bypass the device id check with your database, and enable full functionality.
Although this is not full-proof, it will nevertheless screen a lot of devices.  With this, you can keep track of the number of app installs / resets, and add a 'banned' flag if you want to in your DB -- if you see unusal activity ( like:  unsually high number of re-installs ).
----->  UPDATE:
I just found this ANE which  includes a class called 'SystemProperties', to find the IMEI/IMSI/serial/phone number on Android, and the MAC address on iOS:
https://github.com/mateuszmackowiak/NativeAlert
I have verified that the iOS part works, but haven't tried the Android side, yet.  Note: for iOS, it will also give you a UUID ( even though the object tag claims it is the UDID -- it's not ), which is worthless as a persistent means of identifying the device. since it gets reset on each app re-install.  So, for iOS, you have to use the MAC address, unless you are willing to store/restore the UUID into EncryptedLocalStore, as suggested by a user in:
http://stackoverflow.com/questions/6794493/get-unique-identifier-mac-address-udid-etc-in-a dobe-air-for-ios

Similar Messages

  • Open PDF with Flex Mobile Project

    I want to be able to read PDFs inside a Flex Mobile Project (I'm working with Flash Builder 4.6 and Android and iPad).
    I've tried successfully stagewebview to load a pdf from a web server with this:
    webView = new StageWebView();  webView.loadURL("http://<url>/Paper.pdf");  webView.viewPort = new Rectangle(0, 100,this.stage.stageWidth, this.stage.stageHeight); webView.stage = this.stage;
    But what I really want it's something more visual. I mean, where you can create a flip book, go to page X, or similar. Something like this: http://devaldi.com/zine/NZ_Tourism_2007.php?ro=flash,html
    I've already tried FlexPaper, but Zine doesn't work on Flex Mobile Project.
    Do you know if there is something to do this? or how can I do this?
    Is there any native-extension or something?
    Thanks in advance

    Thanks Keith, I'll have a look at that. In addition to opening a PDF, I want to be able to encode an anchor id in to the open command to jump a specific anchor; I'd concluded that on iOS, until Adobe add decent url-scheme support, that was a no go - so I've been staring down the barrel of converting the .pdf to HTML and tidying up the inevitable issues manually. Here's hoping Print2Flash will help avoid that!

  • StageVideo with Flex Mobile Project on iOS

    In a Flex Mobile project using StageVideo, StageVideoAvailabilityEvent always returns StageVideoAvailability.UNAVAILABLE.
    I've been reading all day and it looks like StageVideo might not be supported with Flex projects, but I can't find a concrete answer.
    I need a definitive answer, using Flash Builder 4.6, AIR 3.1, and Flash Player 11, can StageVideo be used. If so, any help as to how to get this working would be greatly appreciated.
    Thank you in advance.

    After much trial and error, I finally have a definitive answer. The answer is yes, you can use StageVideo in a Flex Mobile project. To be honest I found StageVideo to be completely useless, at least for what I was hoping to use it for.
    The first big problem is that the StageVideo plays underneath all Flash content. Second, at least on iOS, there were no video controls. I suppose you could roll your own, but I didn't take the time to experiemnt with this. I ended up just using StageWebView.
    More information here: http://www.unfetteredthoughts.net/2012/01/12/embedded-h-264-video-on-ios-with-a-flex-mobil e-project/
    I hope that helps anyone else looking for this.

  • Check What PHP function returned with Flex Mobile Project

    Hello, I'm connected to PHP service and Im calling function login that is returning "yes" or "no".
    My question is, how to check what was returned with Flex, this is what I have:
    protected function button_clickHandler(event:MouseEvent):void
                    loginResult.token = employeeService.login(Name.text, pass.text);
    What to do next?
    Thank you

    Thanks Keith, I'll have a look at that. In addition to opening a PDF, I want to be able to encode an anchor id in to the open command to jump a specific anchor; I'd concluded that on iOS, until Adobe add decent url-scheme support, that was a no go - so I've been staring down the barrel of converting the .pdf to HTML and tidying up the inevitable issues manually. Here's hoping Print2Flash will help avoid that!

  • Is it possible to Load External SWF files into Flex Mobile projects?

    Hi Guys,
    I'm trying to load an external asset in this cse (a SWF file) into my flex project (Apple IOS IPAD), don't get any luck. Can any one suggest a solution ?

    In Apple's words, "No interpreted code may be downloaded or used in an Application except for code that is interpreted and run by Apple's Documented APIs and built-in interpreter(s)".
    Hence external swfs cannot be loaded in iOS.

  • Flex Mobile project scaling with Retina display iPad (3rd gen).

    Adobe et al,
    With the new iPad 3 we now have a ton more pixels to utilize. I'm familiar with and have already successfully tested the AIR 3.1+ commandline compiler option (-platformsdk) to get Retina display on the new iPad. In ActionScript mobile projects the content is rendered beautifully on the new iPad. But with Flex Mobile projects, something is happening that causes it to render incorrectly. It's retina display alright, but the size is way too small.
    Below is an image WITHOUT the -platformsdk build tag, that causes the app to be pixel doubled to fit on the new iPad:
    Notice that it's scaled proportionally, even though the text and components are slightly pixelated. Not a big deal, but noticeable on the device.
    This image is taken with the app rendering in Retina display (setting the -platformsdk pointing to iOS 5.1 SDK):
    As you can see, the text/components are rendered really clear, but the scale is way off. Obviously it's getting the width of 2048x1536 from the device, but it's way too small.
    How do I fix this? I've tried changing the applicationDPI, but it doesn't fix it. Setting a width/height of 1024x768 does nothing either. It seems we need to overrride a behavior that causes it to fit everything in so small.
    A little help?
    Thanks,
    iBrent

    Alright, kevinkorngut's answer was the right one. It appears that even though AIR 3.x can render high resolution apps, it still returns the incorrect DPI for the new iPad. In a Flex Mobile project you have to override the DPI using the method mentioned above.
    Here are the results I got:
    Using the runtimeDPIProvider property on the TabViewApplication tag (works for any of the three project types) I created a class that extends RuntimeDPIProvider. To detect which iPad I was on, I used the following code:
    override public function get runtimeDPI():Number
         var os:String = Capabilities.os;
         if(os.indexOf("iPad") != -1)
              if(Capabilities.screenResolutionX > 2000 || Capabilities.screenResolutionY > 2000)
                   return DPIClassification.DPI_320;
              } else {
                   return DPIClassification.DPI_160;
         } else {
              return Capabilities.screenDPI;
    I'm returning a DPI of 320 as this gives the best result that matches the proportions of the device. In other words, even though the iPad DPI is 264, setting the app to 320 gives the correct size at the new Retina display.
    In order for this to work, you must compile the app with the -platformsdk flag pointing to iOS 5.1 SDK, and currently that means you need a Mac running Lion with Xcode 4.3.1. Here's the adt command I used:
    adt -package -target ipa-test -storetype pkcs12 -keystore ~/Desktop/iOS_DevCert.p12 -provisioning-profile ~/Desktop/iOS_DevProfile.mobileprovision newiPadTest.ipa newiPadTest-app.xml newiPadTest.swf -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPh oneOS5.1.sdk
    Also, the -app.xml descriptor file must have the <requestedDisplayResolution>high</requestedDisplayResolution> within the <iPhone> tags.
    Thanks everyone for their replies!
    iBrent

  • I have lost my iphone 5 is it possible to find the imei number of that phone.

    i have lost my iphone 5 is it possible to find the imei number of that phone.

    I just want to repeat what was said up thre thread: make sure you report this phone as lost or stolen to your carrier; this will prevent anyone from wiping it out and registering it as their own phone with service.
    With ios 7 and beyond ,it's not possible to wipe it out and have it set up as a new phone number unless you know the iCLoud ID and password. THat's great, but for iOS 6 you should report it stolen or lost so that it's worthless if someone stole it or found it.
    Your IMEI number is on the box or with the carrier you bought it from. IT won't help you find your phone but you can list it as   lost or stolen.

  • I lost my phone.i have only the serial number .how i can get imei number with it???

    i lost my phone.i have only the serial number .how i can get imei number with it???

    Call your carrier, they have a record of your IMEI number. Or, read here:
    http://support.apple.com/kb/ht4061

  • I have lost my phone IMEI  Number 012546005322381, Serial Number 87******A4S, is there a way it can be tracked? Also, how can one remove the device from the itunes account

    I have lost my phone IMEI  Number 012546005322381, Serial Number 87******A4S, is there a way it can be tracked? Also, how can one remove the device from the itunes account
    <Serial Number Edited By Host>

    If you enabled Find my iPhone then you should use that. If not, I'm afraid you're out of luck for finding it. 
    To manage your devices, go to Your Account in iTunes.

  • How to read mobile phone IMEI number using iPhone Apps

    Hi,
    I am new to this iPhone Apps.
    Can anyone please tell me is it possible to read an IMEI number using java program or iPhone apps or Google apps etc.
    If so, Could you please explain me how can I do that one?
    Thanks,
    Sri

    Thanks for your reply.
    But not in that way, I want to read the IMEI value using J2ME(java program). Can you help me in that way.
    Thanks,
    Sri.

  • HT201441 I do not know the old owner please email His solution is possible the old phone to communicate with him

    I do not know the old owner please email His solution is possible the old phone to communicate with him

    Apple will never release personal information about you or anyone else to any consumer.  It is your responsibility to verify the device before purchasing it if you choose to go through a third party.  Recommendation: Buy Apple products from an authorized reseller.
    You are experiencing Activation Lock.  If the previous owner will not remove the device from their account there is nothing you can do unless the place you purchased it from will give you a refund.
    Activation Lock: http://support.apple.com/kb/ht5818
    What if I purchase a device that is still linked to the previous owner's account?
    Contact the previous owner as soon as possible and ask them to erase the device and remove it from their account. For complete instructions, read how to remove a device from a previous owner's account.
    How do I check for Activation Lock before purchasing a used device?
    When purchasing an iPhone, iPad, or iPod touch from someone other than Apple or an authorized Apple reseller, it is up to you to ensure that the device has been erased and is no longer linked to the previous owner’s account.
    Follow each of these steps to make sure that you can use the device you purchase:
    Turn the device on and slide to unlock.If the passcode lock screen or the home screen appears, the device has not been erased. Ask the seller to completely erase the device by going to Settings > General > Reset > Erase All Content and Settings. Do not take ownership of any used iPhone, iPad, or iPod touch until it has been erased.
    Begin the device setup process.After choosing a language, choosing a country, and connecting to a network, the device will begin activation. If you are asked for the previous owner’s Apple ID and password, the device is still linked to their account. Hand the device back to the seller and ask them to enter their password. If the previous owner is not present, they can remove the device from their account by signing in to icloud.com/find. Do not take ownership of any used iPhone, iPad, or iPod touch until it has been removed from the previous owner’s account.
    You will know that a device is ready for you to use when you are asked to “Set up your iPhone", “Set up your iPad", or “Set up your iPod” during the device setup process.

  • How to register IMEI Number with BlackBerry

    Sir,
    I want to register my new BlackBerry Mibile's IMEI Number with BlackBerry.

    The IMEI number is not required for registration with Apple.  This explains registering an Apple product:
    http://support.apple.com/kb/HT5803
    If your cellular carrier might require some additional IMEI related information, contact them.

  • How to display html content with image in Adobe Flash and Flex mobile project?

    Hi,
      I have a html content with image in it. How to display it in Adobe Flash Builder and Flex mobile project? Which control needs to be used for this?

    Hello,
    The only current way is to use an iFrame, or if you only need some html tags you could use the Text Layout Framework.
    Here this is the iFrame approach:
    http://code.google.com/p/flex-iframe/
    If the swc do not work in Flex4 just use its ource code which works...
    ...it is basically based on this:
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
    see also and vote, please:
    http://bugs.adobe.com/jira/browse/SDK-12291
    http://bugs.adobe.com/jira/browse/SDK-13740
    Regards
    Marc

  • FLEX mobile project SDK?

    I've built my air/android apps using "Flex Mobile projects" in Flash Builder 4.5. I really need to test front camera support in an app im about to release. Will there be a Flex version of the Beta SDK so I can test this in my flex mobile projects? is it possible to use the "AIR 3 SDK Beta 2" SDK with a flex mobile project somehow?

    Yes follow the instructions here to change out the AIR version under Flex SDK 4.5.1
    http://blogs.adobe.com/cantrell/archives/2011/08/how-to-use-the-air-3-beta-sdk.html

  • ANE for one platform on Flex mobile project for iOS and Android

    I'm very new at Flex Mobile Projects and native extension.
    I have a big doubt... If I have an ANE that only works on iOS or Android, can I use it into a project for Android AND iOS?
    I mean, if I want to do something and I've only found and ANE that works for iOS and another ANE that works for Android, can I create only one project and depending on the device use one or another? or should I create two different projects?
    Thanks in advance

    You can set them both up and when you publish just comment out the code that does not apply, this way you still keep it as one project but you can use the ANEs as needed, I had to do this with the iAd ANE only for Apple obviously and AdMob ANE which at the time was Android only.
    Example
    //Android ANE Code
    blah blah blah
    //iOS Code
    code code code
    Now when you publish for iOS comment out the Android related stuff
    //Android ANE Code
    blah blah blah
    //iOS Code
    code code code
    Also dont forget to update your included ANEs when you publish and remove the ones that dont apply and update the XML files as needed. Its possible, but annoying, it would be nice if it was automated or could be flagged somehow so the Flash publisher would auto ignore it.

Maybe you are looking for