@wmora wmora released this Feb 14, 2017 · 53 commits to master since this release

Assets 3

Location Support

  • Smooch iOS SDK now supports locationRequest actions and location messages. To learn more about them, visit the documentation and the API reference

location_demo_ios

Required Property Keys

In order to use location features in your app, you must provide a description for any of the following keys depending on your app's use of location services. Smooch will ask the user for the location depending on the key you provide:

  • NSLocationWhenInUseUsageDescription: describes the reason for your app to access the user’s location information while your app is in use (ex: Location services is required to send your current location to ${PRODUCT_NAME}). This permission is recommended if your app does not use location services and Smooch will default to it if both keys are included. More information available here
  • NSLocationAlwaysUsageDescription: describes the reason for your app to access the user’s location information at all times (ex: Location services is required to send your current location to ${PRODUCT_NAME}). More information available here

If you don't provide one of these keys, any attempt from the user to send their current location will fail.

API Additions

  1. Class SKTCoordinates has been added
  2. Class SKTMessage
    • Added new constructor -initWithCoordinates:payload:metadata:
    • Added new constant SKTMessageTypeLocation
    • Added new property coordinates
  3. Class SKTMessageAction
    • Added new constant SKTMessageActionTypeLocationRequest

Bug fixes

  • Fixed a layout issue where the chat input would sometimes be improperly placed when our ViewController is contained