/input-control-emailContact

Input control for mails that allow get thems from contacts

Primary LanguageKotlinMIT LicenseMIT

EmailContactRow

Action parameter input control for email with a picker to get email 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 EmailContactRowService.
    • This service provide the Eureka row for "emailContact" name.
      • The row is EmailContactRow, which add a picker for contacts email to standard email 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 EmailContactRowService service

	<key>application.services</key>
	<array>
		<string>EmailContactRowService</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...