PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
[WM20] Get ID for iOS
[WM20] Get ID for iOS
Started by ARV, May, 23 2018 6:36 PM - 2 replies
Connect yourself…
ARV
#1
Registered member
498 messages
Popularité : +8 (8 votes)
Posted on May, 23 2018 - 6:36 PM
Hi my fellows developers
This is a way to get the ID for an iOS device because the PCSoft doesn't provide a code for that, for some rules of Apple, I found the solution on the forum of PCSoft but on france so I post this on english then here's how
First Download this app on this link
http://depot.pcsoft.fr/resource.awp…
NOTE: better get Windev Mobile 21 or 22 or Windev 21 or 22 if you don't have that then It´'s not gonna open
First you need to create a global procedure called whatever you want but you need to transform WL to ObjC and put this code:
#import
"DeviceUID.h"
#import
<
UIKit
/
UIKit.h
>
NSString
*
getUID
(
)
//This is the name of the procedure you can call it however you like or you could let it be like this
{
RETURN
[
DeviceUID uid
]
;
}
Then on your project of WM when you need to know the ID of the device just call that procedure like this:
E
DT_Text1
=
getUID
(
)
I use and EDT_Text1 just to show the ID of the device, and that's it, next the last part,
when you create the project on Xcode you need to do this:
on the project you download there you have some important files called:
-DeviceUID.h
-DeviceUID.m
IMPORTANT: Those files you need to import it on the executable of the app on Windev mobile.
SUPER IMPORTANT: After you import those files you need to add this "Security.framework" if you do not put this it's not gonna work.
with all of this done NOW you can get and ID for iOS devices SWEET!
Source:
https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windevmobile/22616-identifiant-unique-terminal-ios/read.awp
PD: I hope the link of the file it's not broke... I hope so...
Any question please ask!
Best Regards
Jose
Message modified, May, 23 2018 - 6:50 PM
Report
0
0
ARV
#2
Registered member
498 messages
Popularité : +8 (8 votes)
Posted on May, 23 2018 - 6:40 PM
Hi everyone
Heres some ScreenShots of how to put the "Security.framework"
Best regards
Jose
Message modified, May, 23 2018 - 6:51 PM
Report
0
0
ARV
#3
Registered member
498 messages
Popularité : +8 (8 votes)
Posted on May, 23 2018 - 6:50 PM
Hi everyone
Heres is where you need to click to download the file:
Best regards
Jose
Report
0
0
→ Go back to WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text