GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - linjiajian999/SendMsg: an android app that can send sms on background

This repository was archived by the owner on Aug 19, 2019. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
__tests__
__tests__
 
 
android
android
 
 
dist
dist
 
 
ios
ios
 
 
src
src
 
 
.babelrc
.babelrc
 
 
.buckconfig
.buckconfig
 
 
.flowconfig
.flowconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.watchmanconfig
.watchmanconfig
 
 
App.js
App.js
 
 
README.md
README.md
 
 
app.json
app.json
 
 
index.js
index.js
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

SendMsg

在安卓设备上,可以调用发短信接口,实现在后台自动发送短信功能

usage

  • 实现安卓原生模块 SendMsgTool
import {
  NativeModules,
  DeviceEventEmitter
} from 'react-native'

const ON_MSG_CALLBACK = 'ON_MSG_CALLBACK'
const NativeSendMsgTool = NativeModules.SendMsgTool

interface MsgCallbackParams {
  info: string
  phone: string
  statusCode: number
  msgId: number
}

let id = 0
let phone = '10086'
let msg = 'hello'
// 发送短信
NativeSendMsgTool.sendMsg(id, phone, msg)
// 可监听短信发送回调
DeviceEventEmitter.addListener(
  ON_MSG_CALLBACK,
  (params: MsgCallbackParams) => {
     console.log(params)
  }
)

详情可参考 send-msg-tool.ts
安卓主要代码实现 iOS代码实现

  • iOS由于api限制,不能自动发送短信,只实现了APP内调起发送短信界面,需要手动发送
  • 主要功能已实现

About

an android app that can send sms on background

Topics

androidiosreact-nativesendsendsmssmstypescript

Resources

Readme
Activity

Stars

2 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.