Post

Replies

Boosts

Views

Activity

Detect if NFC is enabled or not
Hi, I am using the below code to detect if NFC is enabled or not. (BOOL)isNFCAvailable { if ([NFCNDEFReaderSession readingAvailable]) { return YES; } return NO; } I have also added the permission is info.plist file NFCReaderUsageDescription Detecting if NFC is enabled or not I am testing on iphone XS with ios 15.6.1 and on iphone 11 with ios 13.2.2. In both the cases, the API is returning false. Can you please let me know if I am missing something.
0
0
961
May ’23
Do we need to release the reference count on host port
Hi, I am using the below code to compute the free memory in iOS. uint64_t memAvailable() { mach_port_t host_port = mach_host_self(); if(host_port == MACH_PORT_NULL) { return 0; } vm_size_t pagesize; host_page_size(host_port, &pagesize); vm_statistics_data_t vm_stat; mach_msg_type_number_t host_size = sizeof(vm_statistics_data_t) / sizeof(integer_t); if (host_statistics(host_port, HOST_VM_INFO, (host_info_t)&vm_stat, &host_size) != KERN_SUCCESS) { tdlog(LOG_LEVEL_DEBUG, @"Failed to fetch vm statistics"); return 0; } /* Stats in bytes */ return vm_stat.free_count * pagesize; } My qs is do we need to call mach_port_deallocate() to release the reference count on host_port?? Please advise.
1
0
823
Mar ’23
iOS: Find all the permissions which are granted or denied to an app
Hi, Is there a way I can find all the permissions which are granted/denied to an app in iOS? Any particular API which can run through all the permissions at one place?
Replies
3
Boosts
1
Views
1.1k
Activity
Nov ’23
Fetch network security type
Hi, Is there any API exposed to fetch network security type like "WPA", "WPA2", "WES" or None for iOS device?
Replies
4
Boosts
0
Views
1.1k
Activity
Jul ’23
How to check if "Wifi Calling" option is enabled or not
Hi, I want to know if we can detect whether Settings -> Mobile Data -> Wifi Calling option is enabled or not? I checked and could not find any API which can detect this. I am also interested to know if we can find a way to know if Wifi Calling is being used in a call.
Replies
4
Boosts
0
Views
1.2k
Activity
Jul ’23
How to know if ios device is connected to open or public wifi
I am working on an app where I need to detect if the ios device is connected to open wifi or not. Is there any API which can help detect the same?
Replies
7
Boosts
0
Views
1.8k
Activity
Jul ’23
Determine if it's a cellular call or VOIP call.
Hi Everyone, I am working on an app where I need to determine if a call whether incoming or outgoing is a normal (cellular) call or VOIP call? And yes, if we can identify if it's a VOIP call, can we also identify the name of the app used for the call?
Replies
0
Boosts
0
Views
1.1k
Activity
Jul ’23
Detect if the call is VOIP or not
Hi, I am using the below code CXCallObserver *callObserver = [[CXCallObserver alloc] init]; for(CXCall* call in callObserver.calls) { if(call != nil) { } } Is there a way we can determine if it is a voip or call or not.
Replies
0
Boosts
0
Views
936
Activity
Jul ’23
Detect if NFC is enabled or not
Hi, I am using the below code to detect if NFC is enabled or not. (BOOL)isNFCAvailable { if ([NFCNDEFReaderSession readingAvailable]) { return YES; } return NO; } I have also added the permission is info.plist file NFCReaderUsageDescription Detecting if NFC is enabled or not I am testing on iphone XS with ios 15.6.1 and on iphone 11 with ios 13.2.2. In both the cases, the API is returning false. Can you please let me know if I am missing something.
Replies
0
Boosts
0
Views
961
Activity
May ’23
Do we need to release the reference count on host port
Hi, I am using the below code to compute the free memory in iOS. uint64_t memAvailable() { mach_port_t host_port = mach_host_self(); if(host_port == MACH_PORT_NULL) { return 0; } vm_size_t pagesize; host_page_size(host_port, &pagesize); vm_statistics_data_t vm_stat; mach_msg_type_number_t host_size = sizeof(vm_statistics_data_t) / sizeof(integer_t); if (host_statistics(host_port, HOST_VM_INFO, (host_info_t)&vm_stat, &host_size) != KERN_SUCCESS) { tdlog(LOG_LEVEL_DEBUG, @"Failed to fetch vm statistics"); return 0; } /* Stats in bytes */ return vm_stat.free_count * pagesize; } My qs is do we need to call mach_port_deallocate() to release the reference count on host_port?? Please advise.
Replies
1
Boosts
0
Views
823
Activity
Mar ’23
Programatically get free and used RAM in ios
Hi, I need to programatically compute the free and used RAM in ios using objective C. Most of the samples I have seen uses host_statistics API, although that works but that API is macOS specific and not iOS. I am looking for API which is compliant with iOS.
Replies
3
Boosts
1
Views
1.9k
Activity
Jan ’23
App Attest counter value reset to 0
Hi, I am new to iOS development and currently studying App Attest functionality. Can someone confirm why the counter value be 0 during attestation validation at the server side. And also, can this value be reset to 0 at any point of time? Do we need to do code signoff as well for using App Attest?
Replies
1
Boosts
0
Views
1.9k
Activity
Sep ’22