Skip to content

2.1.0

Compare
Choose a tag to compare
@lyx501135 lyx501135 released this 10 Mar 09:42
· 39 commits to master since this release
  • Add SkylinkAction_GET_MESSAGE_STORED to configure the timeout for getting stored message from server
  • Add default timeout for getting stored message is 30 seconds
  • Add new feature: asynchronous message
    • Encrypt/decrypt message by secret id and secret map in encryptAes256 / decryptAes256 method when sending server messages, both public and private messages
    • Integrate with App console to checking the app key configured with hasPersistentMessage to implement storing messages on the server
    • Add new callback for getting stored message asynchronously
    • Add new APIs for user to use the feature
      • public property messagePersist, @Property(nonatomic, assign) BOOL messagePersist;
      • public dictionary encryptSecrets, @Property(nonatomic, copy) NSDictionary * _Nullable encryptSecrets;
      • public property selectedSecretId, @Property(nonatomic, copy) NSString * _Nullable selectedSecretId;
      • public method - (void)getStoredMessages:(void (^ _Null_unspecified) (NSArray * _Nullable storedMessages, NSDictionary * _Nullable errors))callback;
    • Add new error codes when error happens while using the feature
      • MESSAGE_DECRYPT_FAILED_SECRET_NO
      • MESSAGE_DECRYPT_FAILED_SECRET_INCORRECT
      • MESSAGE_ENCRYPT_FAILED_ENCRYPT
      • MESSAGE_ENCRYPT_FAILED_SECRET_NO
      • MESSAGE_STORED_GET_FAILED
      • MESSAGE_STORED_GET_FAILED_SERVER
      • MESSAGE_STORED_GET_FAILED_CONSOLE_SET_NOT
      • MESSAGE_PERSIST_FAILED_CONSOLE_SET_NOT
      • MESSAGE_PERSIST_FAILED_SECURE_SET_NOT
      • MESSAGE_STORED_GET_FAILED_REQUEST_EXISTING
      • MESSAGE_FORMAT_FAILED
      • MESSAGE_PERSIST_FAILED_BROADCAST_SET_NOT
    • Return error when user try to get stored message before the SDK returns result /error from previous getting process
    • Return message in original format: String, Dictionary, Array