iOS Question Configurate UUID of an IBeacon for IOS

Humberto

Active Member
Licensed User
Longtime User
Last edited:

Humberto

Active Member
Licensed User
Longtime User
This error occurs



The line is
B4X:
    Return cl.Initialize("CLBeaconRegion").RunMethod("alloc", Null) _
    .RunMethod("initWithProximityUUID:major:minor:identifier:", _
    Array(u, Major, Minor, Identifier))
 

Attachments

  • ibeacon.zip
    1.4 KB · Views: 240
Last edited:
Upvote 0

Humberto

Active Member
Licensed User
Longtime User
I tested with Iphone 4s IOS 9.3.5 and IPad IOS 10.3.3.3

The error in IPad

 

Attachments

  • Ipad.png
    118.2 KB · Views: 269
  • Iphone4S.png
    108.9 KB · Views: 252
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
What is the output of this code:
B4X:
Sub CreateBeaconRegion (UUID As String, Major As Int, Minor As Int, Identifier As String) As NativeObject
   Dim cl As NativeObject
   Dim u As NativeObject
   u = u.Initialize("NSUUID").RunMethod("alloc", Null).RunMethod("initWithUUIDString:", Array(UUID))
   Log(u.IsInitialized)
   Log(u)
   cl = cl.Initialize("CLBeaconRegion").RunMethod("alloc", Null)
   Log("test")
   cl = cl.RunMethod("initWithProximityUUID:major:minor:identifier:", _
       Array(u, Major, Minor, Identifier))
   Log(cl)   
   Return cl
End Sub

?
 
Upvote 0

Humberto

Active Member
Licensed User
Longtime User


Line 77 cl = cl.Initialize("CLBeaconRegion").RunMethod("alloc", Null)
 
Last edited:
Upvote 0

Humberto

Active Member
Licensed User
Longtime User
Hi Erel

I don´t have at this moment, an Iphone witj IOS 11

This software I installed in my device and works as an Ibeacon


Ibeacon is from IOS 7.

Follow the image of my Iphone 4S configurated as Ibeacon and a Moto X reading it

I installed the software that read IBeacon and aldo works ( your example ).

Could you run this code ?
 

Attachments

  • Iphone_1.jpeg
    32.6 KB · Views: 259
  • Iphone_2.jpeg
    35.5 KB · Views: 261
  • MotoX.png
    170.8 KB · Views: 281
  • Both.png
    148.4 KB · Views: 271
Upvote 0

Humberto

Active Member
Licensed User
Longtime User
This is not working in IOS 9 and IOS 10, but there are some apk that Works with this versions.

What to do?

I'll try to find an IOS 11 or 12 to test, but still. Will remain this isues
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…