Skip to content

Edition row for phone with a picker to get phone from contacts

License

Notifications You must be signed in to change notification settings

4d-go-mobile/input-control-phoneContact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhoneContactRow

Prototype of action parameter row for phone with a picker to get phone from contacts

preview

How it work

If integrated using 4D (not possible now v19R2, 19R3 or R4?)

manifest.json define

  • an application service to inject, the PhoneContactRowService.
    • This service provide the Eureka row for "phoneContact" name.
      • The row is PhoneContactRow, which add a picker for contacts phone to standard phone eureka row
  • the contacts capabilities to allow iOS app to display contacts
    • this will inject in final iOS app the NSContactsUsageDescription key for that
  • a parameter inject to ask 4d to inject source code

If we want to do without manifest.json but project

Copy capabilities json key value of manifest.json to your project.4dmobileapp. When building an app it will do the same as described before. (except copying the code)

If we have to do the job manually

After generating the app

Edit Xcode/Info.plist and add

	<key>NSContactsUsageDescription</key>
	<string>$(PRODUCT_NAME) needs access to the Contacts to let you share it.</string>

Edit Settings/Settings.plistfile and add or modify application.servicekey to add PhoneContactRowService service

	<key>application.services</key>
	<array>
		<string>PhoneContactRowService</string>
	</array>

TODO

  • More code to be sure we ask access to contact, could check if contact allowed, provide a way to open setting if deactivate etc...