AppDelegate.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //
  2. // AppDelegate.h
  3. // JSJPCoach
  4. //
  5. // Created by apple on 2017/3/10.
  6. // Copyright © 2017年 Danson. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <BaiduMapAPI_Base/BMKMapManager.h>
  10. #import "LocationTracker.h"
  11. //语音
  12. #import <AVFoundation/AVFoundation.h>
  13. //个推
  14. #import <GTSDK/GeTuiSdk.h>
  15. // iOS10 及以上需导入 UserNotifications.framework
  16. #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
  17. #import <UserNotifications/UserNotifications.h>
  18. #endif
  19. /// 个推开发者网站中申请App时,注册的AppId、AppKey、AppSecret
  20. #define kGtAppId @"SzkJDeohQw5eiqF6hZU01A"
  21. #define kGtAppKey @"XokJOiykLiABMmO0Ci3lC3"
  22. #define kGtAppSecret @"981RLJonkj8MCmWv1Ze7O"
  23. //bugly
  24. #define BUGLY_APP_ID @"892772f2c8"
  25. @interface AppDelegate : UIResponder <UIApplicationDelegate>
  26. {
  27. BMKMapManager *_mapManager;
  28. }
  29. @property (strong, nonatomic) UIWindow *window;
  30. @property (nonatomic, assign) BOOL isBackgroundTask;
  31. @property (nonatomic, assign) BOOL isPeriodIng;
  32. //嵌入后台相关
  33. @property (nonatomic, retain) LocationTracker *locationTracker;
  34. @property (nonatomic, retain) NSTimer *locationUpdateTimer;
  35. //记录当前播放语音 好做关闭处理
  36. @property (retain, nonatomic) AVSpeechSynthesizer *myAudioPlayer;
  37. //个推token
  38. @property(nonatomic,strong)NSString* token;
  39. /**
  40. 接口留给推送用的。
  41. */
  42. -(void)gotoLoad;
  43. @end