Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User AhmedRBasuony's Avatar
    Join Date
    Mar 2013
    Posts
    8
    Hi,

    I'm building an application using NFC for Windows Phone 8,
    I want to know if the user enabled using Tap+Send from Device settings or not.

    How can I detect that?

  2. #2
    Registered User Departed's Avatar
    Join Date
    Apr 2013
    Posts
    14
    Hi,

    Changing device setting through an app in WP8 is not possible. However, when you tap two WP8 devices and their Tap+Send setting is on , they will create a NFC communication channel that can be detected by a sound which appears when the devices are in proximity. By that sound you can detect whether Tap+Send for the device is enabled or not.

  3. #3
    Registered User influencer's Avatar
    Join Date
    Aug 2012
    Posts
    19
    Hi Ahmed,

    the following blog entry details on how to detect the tap and send state

    How to detect if NFC is enabled on Windows Phone 8 devices


    I'm a bit late with this hint but I just saw your question. Hope it helps, anyway.

    Cheers,
    Thomas

  4. #4
    Nokia Developer Moderator joaocardoso's Avatar
    Join Date
    Feb 2011
    Location
    Portugal
    Posts
    560
    Quote Originally Posted by AhmedRBasuony View Post
    Hi,

    I'm building an application using NFC for Windows Phone 8,
    I want to know if the user enabled using Tap+Send from Device settings or not.

    How can I detect that?

    Hi Ahmed,

    Did Influencer solution worked for you?

    As the article he referenced, in order to detect if the NFC sensor is ready to be usd you can do a simple test:

    Code:
    var nfcDevice  = Windows.Networking.Proximity.ProximityDevice.GetDefault();
    if (nfcDevice != null) { // You are ready to use it
    }
    else {   // The device is not enabled
    }
    For this to work you need to add the ID_CAP_PROXIMITY and ID_CAP_NETWORKING capability to your app. To do that, on Solution Explorer, select Properties and then double click the WMAppManifest.xml file. A properties windows should come up.

    If your app requires a device with NFC to function properly, you can also select on the Manifest Properties the ID_REQ_NFC option. That will prevent users with devices that does not support NFC to install your app. I would not recommend it dough. I prefer to warn the user about the need for the NFC device but having him / her to install my app anyway.
    Last edited by joaocardoso; 2013-06-07 at 14:51.
    Cheers

    João Cardoso

Similar Threads

  1. Replies: 3
    Last Post: 2008-08-25, 12:56
  2. Replies: 0
    Last Post: 2008-08-20, 12:48
  3. Installed MIDlet is disabled on 6230i, but enabled on 6230
    By ieising in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2005-08-23, 18:27
  4. Detect WTLS enabled
    By hwahrmann in forum Mobile Web Site Development
    Replies: 0
    Last Post: 2003-09-01, 10:33
  5. Replies: 1
    Last Post: 2002-12-27, 08:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved