Why iOS advertises automatically?

I am working on Bluetooth advertising.


I started and stoped advertising by startAdvertising(with a custom name " my rssi ") and stopAdvertising, but the ComProbe can still gets advertising sent by iOS automatically.


Bellowing is some information:


AD type: Flags

PDU type: ADV_IND

AD Data:

Manufacturer ID: Apple, Inc.

Additional Data: 0x 10 05 1b 18 3f c0 1e


I have this problem on iPhone 8 with iOS version 12.3


But I don’t have this problem on iPhone 6s with iOS version 10.3.2.


I want to know how to stop iOS advertises automatically, I just need advertising with my custom name like "my rssi".


Thank you.

Replies

Could you show how you call startAdvertising ?

Hi, belowling is the code :


@property (nonatomic, strong) CBPeripheralManager *myPeripheralManager;


NSDictionary *scan = @{CBAdvertisementDataLocalNameKey : @"my rssi"};

[self.myPeripheralManager startAdvertising:scan];


Thank you.