厭倦每天上班下班都要手動打卡了嗎?

WINSTON HSIEH
4 min readNov 19, 2022

--

本文會利用 Apollo HR 平台上實作一個自動化打卡 iOS App

厭倦每天日復一日重複去打開 App 手動打卡了嗎?

你一定要使用裝上 Autopollo iOS App 試用看看來解決惱人的問題吧!!

安裝步驟

1. 安裝最新版 Xcode developer tools 在 Apple iTune Store。

2. Clone the repository:

git clone https://github.com/heretse/Autopollo

3. 打開 Autopollo.xcodeproj 檔案 in Xcode

Autopollo
├── Autopollo
│ ├── Assets.xcassets
│ │ ├── AccentColor.colorset
│ │ │ └── Contents.json
│ │ ├── AppIcon.appiconset
│ │ │ ├── 7295539_toys_kids_children_robot_play_icon.png
│ │ │ └── Contents.json
│ │ └── Contents.json
│ ├── AutopolloApp.swift
│ ├── ContentView.swift
│ ├── FormView.swift
│ └── Preview Content
│ └── Preview Assets.xcassets
│ └── Contents.json
├── Autopollo.xcodeproj
├── LICENSE
├── README.md
└── images
├── Auto_Punch.png
├── Login_Setup.png
└── Reset_Login.png

4. Build the Autopollo scheme in Xcode and install into your iPhone.

使用步驟

1. 打開 Apollo App 後,首次使用先設定你的 「公司代碼」、「工號」以及 「密碼」資訊來自動登入 Apollo HR 平台,完成後請按下「Save」按鈕。

Note: 您輸入的這些資訊只會儲存在 App UserDefaults 中

2. 再次打開 Apollo App 後,您可以確認看看自動登入流程與打卡是否正常執行。

3. 如果想要重新設定登入資訊,您可以在自動流程與打卡的過程中按下位於右上角「Reset」按鈕。

自動化操作

結合 iOS 捷徑設定偵測到「NFC 悠遊卡」or 「NFC 門禁卡」時,自動打開 App。

  1. 新增「自動化操作」設定偵測到「公司門禁卡」時

2. 設定打開「Autopollo」App

3. 手動測試自動化

--

--

WINSTON HSIEH
WINSTON HSIEH

Written by WINSTON HSIEH

Experienced in DevOps with AWS and GCP, converting applications to be containerized and running them on EKS or GKE clusters.

No responses yet