TWI627596B - Method for automatic switching the instant message notification mode according to the execution and connection status of the financial commodity transaction software, and the mobile device service server - Google Patents

Method for automatic switching the instant message notification mode according to the execution and connection status of the financial commodity transaction software, and the mobile device service server Download PDF

Info

Publication number
TWI627596B
TWI627596B TW105104404A TW105104404A TWI627596B TW I627596 B TWI627596 B TW I627596B TW 105104404 A TW105104404 A TW 105104404A TW 105104404 A TW105104404 A TW 105104404A TW I627596 B TWI627596 B TW I627596B
Authority
TW
Taiwan
Prior art keywords
server
push
mobile device
instant message
financial commodity
Prior art date
Application number
TW105104404A
Other languages
Chinese (zh)
Other versions
TW201730830A (en
Inventor
hong-long Shao
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed filed Critical
Priority to TW105104404A priority Critical patent/TWI627596B/en
Publication of TW201730830A publication Critical patent/TW201730830A/en
Application granted granted Critical
Publication of TWI627596B publication Critical patent/TWI627596B/en

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

一種依金融商品交易行動軟體的執行與連線狀況自動切換即時訊息通知模式的方法,由一行動裝置服務伺服端的一第一伺服器判定其與安裝於一行動裝置的一金融商品交易行動軟體處於連線狀態時,將該即時訊息透過網路傳送給該金融商品交易行動軟體,並判斷該金融商品交易行動軟體是否於一預設時間內回傳一確收訊息,若否,則由該行動裝置服務伺服端的一第二伺服器將該即時訊息與該行動裝置的一推播識別碼傳送至網路上的一推播伺服器,使該推播伺服器根據該推播識別碼,將該即時訊息傳送給該金融商品交易行動軟體。A method for automatically switching an instant message notification mode according to execution and connection status of a financial commodity transaction software, and a first server of a mobile device service server determines that it is in a financial commodity transaction software installed on a mobile device In the connected state, the instant message is transmitted to the financial commodity trading software via the network, and it is determined whether the financial commodity trading software returns a confirmed message within a predetermined time, and if not, the action is a second server of the device service server transmits the instant message and a push identification code of the mobile device to a push server on the network, so that the push server obtains the instant according to the push identifier The message is sent to the financial commodity trading software.

Description

依金融商品交易行動軟體的執行與連線狀況自動切換即時訊息通知模式的方法、行動裝置服務伺服端Method for automatically switching the instant message notification mode according to the execution and connection status of the financial commodity transaction software, and the mobile device service server

本發明是有關於一種即時訊息通知的方法,特別是指一種依金融商品交易行動軟體的執行與連線狀況自動切換即時訊息通知模式的方法。The present invention relates to a method for instant message notification, and more particularly to a method for automatically switching an instant message notification mode according to the execution and connection status of a financial commodity transaction software.

現行安裝在一行動裝置,例如智慧型手機或平板電腦等的金融商品交易行動軟體應用程式(以下簡稱行動APP)通常採用常態性連線模式、定時輪詢模式或離線推播模式其中一種(或者供使用者選擇其中一種)接收來自一主機端的即時訊息,其中常態性連線模式是指行動APP與主機端建立常態性固定網路連線,當主機端有即時訊息要發佈時,即透過此一預先建立的網路立即傳送即時訊息給行動裝置的行動APP,使將即時訊息呈現在行動裝置上;定時輪詢模式是指行動APP與主機端不會建立固定網路連線,而是由行動APP定時向主機端詢問是否有即時訊息要發佈,若有,再接收即時訊息並呈現於行動裝置上;離線推播模式亦指行動APP與主機端不會建立固定網路連線,並且由行動裝置的一雲端推播服務,例如現有的GCM(Google Cloud Messaging)或APNs(Apple Push Notification Service)提供離線推播,當主機端有即時訊息要推送給行動APP時,主機端透過雲端推播服務將即時訊息推送到行動APP,再由行動APP將即時訊息呈現在行動裝置上。A financial product transaction mobile application (hereinafter referred to as a mobile APP) currently installed in a mobile device such as a smart phone or a tablet usually adopts one of a normal connection mode, a timed polling mode, or an offline push mode (or For the user to select one of them) to receive an instant message from a host, wherein the normal connection mode means that the mobile APP establishes a normal fixed network connection with the host, and when the host has an instant message to be published, A pre-established network immediately transmits an instant message to the mobile APP's mobile APP, so that the instant message is presented on the mobile device; the timed polling mode means that the mobile APP does not establish a fixed network connection with the host, but instead The mobile APP periodically asks the host for whether an instant message is to be released, and if so, receives the instant message and presents it on the mobile device; the offline push mode also means that the mobile APP does not establish a fixed network connection with the host, and A cloud push service of the mobile device, such as an existing GCM (Google Cloud Messaging) or APNs (Apple Push Notification Service) Offline push, when there are host instant messages to be pushed to action APP, the host side through the cloud push instant messaging service will be pushed to action APP, APP and then by an act of the instant messages appear on mobile devices.

由此可知,上述常態性連線模式的即時性最佳,但因為要維持常態性連線,因此行動裝置會耗用大量電力並佔用網路流量,且由於行動網路的不穩定性,主機端並無法即時偵測行動APP是否處於斷線或非連線狀態,尤其當剛斷線時,通常主機端會有一段等待的空窗時間,若主機端在此一空窗時間送出即時訊息,將會造成即時訊息無法正常傳送至行動APP。It can be seen that the above-mentioned normal connection mode has the best immediacy, but because the normal connection is maintained, the mobile device consumes a large amount of power and occupies the network traffic, and the host is unstable due to the instability of the mobile network. The terminal cannot immediately detect whether the mobile APP is disconnected or disconnected. Especially when the cable is disconnected, usually there will be a waiting window time on the host. If the host sends an instant message at this window time, This will cause the instant message to not be delivered to the mobile app.

因此,本發明之目的,即在提供一種依金融商品交易行動軟體的執行與連線狀況自動切換即時訊息通知模式的方法,及應用該方法的行動裝置服務伺服端,使即時訊息能安全無漏地傳送給安裝於一行動裝置的金融商品交易行動軟體。Therefore, the object of the present invention is to provide a method for automatically switching an instant message notification mode according to the execution and connection status of a financial commodity transaction software, and a mobile device service server using the method, so that the instant message can be safely leaked. It is transmitted to the financial commodity trading software installed on a mobile device.

於是,本發明一種依金融商品交易行動軟體的執行與連線狀況自動切換即時訊息通知模式的方法,該金融商品交易行動軟體安裝於一行動裝置,以接收由一提供金融商品交易服務的行動裝置服務伺服端經由網路提供的一即時訊息,並將該即時訊息呈現於該行動裝置;該方法包括:(A)該行動裝置服務伺服端的一第一伺服器判定其與該金融商品交易行動軟體處於連線狀態時,該第一伺服器將該即時訊息透過網路傳送給該金融商品交易行動軟體,並等待該金融商品交易行動軟體回傳一確收訊息(此一訊息可以是網路層訊息、作業系統訊息、應用程式訊息等任一訊息,可確定訊息已正確傳遞並接收完成,不僅限於所述);及(B)該第一伺服器於一預設時間內未收到該確收訊息時,其令該行動裝置服務伺服端的一第二伺服器將該即時訊息與該行動裝置的一推播識別碼傳送至網路上的一推播伺服器,使該推播伺服器根據該推播識別碼,將該即時訊息傳送給該金融商品交易行動軟體。Accordingly, the present invention is a method for automatically switching an instant message notification mode according to the execution and connection status of a financial commodity trading action software, the financial commodity trading action software being installed in a mobile device to receive a mobile device providing a financial commodity transaction service The service server provides an instant message via the network and presents the instant message to the mobile device. The method includes: (A) the first server of the mobile device service server determines that it is trading the software with the financial commodity When in the connected state, the first server transmits the instant message to the financial commodity transaction software via the network, and waits for the financial commodity transaction software to return an acknowledgement message (this message may be the network layer) Any message such as message, operating system message, application message, etc., can determine that the message has been correctly transmitted and received, not limited to the above; and (B) the first server did not receive the confirmation within a preset time Receiving a message, causing a second server of the mobile device service server to push the instant message and the mobile device Code sent to a push server on the network, so that the push server according to the push identifier, transfer the instant message to the Financial Instruments and Exchange mobile software.

在本發明的一實施例中,在步驟(A)中,當該第一伺服器判定其與該金融商品交易行動軟體處於未連線狀態時,其令該第二伺服器將該即時訊息與該行動裝置的該推播識別碼傳送至網路上的該推播伺服器,使該推播伺服器根據該推播識別碼,將該即時訊息傳送給該金融商品交易行動軟體。In an embodiment of the present invention, in step (A), when the first server determines that it is in an unconnected state with the financial commodity transaction software, the second server causes the second server to The push identification code of the mobile device is transmitted to the push server on the network, and the push server transmits the instant message to the financial commodity transaction software according to the push identification code.

在本發明的一實施例中,該金融商品交易行動軟體於該行動裝置上第一次被執行時,該金融商品交易行動軟體自動連上該推播伺服器,並於該推播伺服器註冊以獲得該推播識別碼,該金融商品交易行動軟體再自動連上該第二伺服器,並於該第二伺服器註冊且提供該推播識別碼給該第二伺服器。In an embodiment of the present invention, when the financial commodity transaction software is first executed on the mobile device, the financial commodity transaction software is automatically connected to the push server and registered with the push server. To obtain the push identification code, the financial commodity transaction software is automatically connected to the second server, and the second server registers and provides the push identification code to the second server.

在本發明的一實施例中,該金融商品交易行動軟體還提供該推播識別碼給該行動裝置的作業系統,以向該作業系統註冊一推播通知,且在步驟(B)中,該即時訊息被該行動裝置接收後,再由該行動裝置的該作業系統根據該推播通知提供給該金融商品交易行動軟體。In an embodiment of the present invention, the financial commodity transaction software further provides the push identification code to the operating system of the mobile device to register a push notification with the operating system, and in step (B), the After the instant message is received by the mobile device, the operating system of the mobile device provides the financial product transaction software according to the push notification.

在本發明的一實施例中,該推播伺服器是Google雲端訊息連結伺服器或Apple推播通知服務伺服器,但不限於這兩項推播伺服器。In an embodiment of the invention, the push server is a Google Cloud Message Connection Server or an Apple Push Notification Service Server, but is not limited to the two push servers.

在本發明的一實施例中,該第一伺服器與該第二伺服器可整合安裝於該行動裝置服務伺服端的一主機或分別安裝於該行動裝置服務伺服端的不同主機。In an embodiment of the present invention, the first server and the second server may be integrated with a host installed on the server of the mobile device or a different host installed on the server of the mobile device.

再者,本發明實現上述方法的一種行動裝置服務伺服端,其能與網路上的一推播伺服器通訊,並且透過網路提供一即時訊息給安裝於一行動裝置的一金融商品交易行動軟體,使將該即時訊息呈現於該行動裝置;該行動裝置服務伺服端包括一第一伺服器與一第二伺服器,該第一伺服器判定與該金融商品交易行動軟體處於連線狀態時,將該即時訊息透過網路傳送給該金融商品交易行動軟體,並等待該金融商品交易行動軟體回傳一確收訊息(此一訊息可以是網路層訊息、作業系統訊息、應用程式訊息等任一訊息,可確定訊息已正確傳遞並接收完成,不僅限於所述);該第二伺服器在該第一伺服器於一預設時間內未收到該確收訊息時,將該即時訊息與該行動裝置的一推播識別碼傳送至該推播伺服器,使該推播伺服器根據該推播識別碼,將該即時訊息傳送給該金融商品交易行動軟體。Furthermore, the present invention implements a mobile device service server of the above method, which can communicate with a push server on the network and provide an instant message via the network to a financial commodity transaction software installed on a mobile device. And presenting the instant message to the mobile device; the mobile device service server includes a first server and a second server, and the first server determines that the financial commodity transaction software is in a connected state. Transmitting the instant message to the financial commodity trading software via the network, and waiting for the financial product transaction software to return an acknowledgement message (this message may be a network layer message, an operating system message, an application message, etc.) a message that determines that the message has been correctly transmitted and received, not limited to the above; the second server notifies the instant message when the first server does not receive the acknowledgement message within a predetermined time Sending a push identification code of the mobile device to the push server, and causing the push server to transmit the instant message to the push broadcast identifier according to the push broadcast identifier Financial commodity trading operations software.

在本發明的一實施例中,該第一伺服器判定其與該金融商品交易行動軟體處於未連線狀態時,則令該第二伺服器將該即時訊息與該行動裝置的該推播識別碼傳送至網路上的該推播伺服器,使該推播伺服器根據該推播識別碼,將該即時訊息傳送給該金融商品交易行動軟體。In an embodiment of the present invention, when the first server determines that the financial transaction transaction software is in an unconnected state, the second server causes the second server to identify the instant message and the mobile device. The code is transmitted to the push server on the network, and the push server transmits the instant message to the financial commodity transaction software according to the push identification code.

在本發明的一實施例中,該推播識別碼是該金融商品交易行動軟體向該第二伺服器註冊時提供給該第二伺服器,亦可透過第一伺服器將註冊訊息轉送給第二伺服器。In an embodiment of the present invention, the push identification code is provided to the second server when the financial product transaction software is registered with the second server, and the registration message may be forwarded to the first server by using the first server. Two servers.

在本發明的一實施例中,該第一伺服器與該第二伺服器是整合安裝於該行動裝置服務伺服端的一主機或分別安裝於該行動裝置服務伺服端的不同主機。In an embodiment of the invention, the first server and the second server are integrated with a host installed on the mobile device service server or different hosts respectively installed on the mobile device service server.

本發明之功效在於:藉由行動裝置服務伺服端根據行動裝置的金融商品交易行動軟體的執行與連線狀態,自動切換即時訊息通知模式,使行動裝置服務伺服端產生的即時訊息能安全無漏地傳送至行動裝置的金融商品交易行動軟體,確實達成本發明之功效與目的。The utility model has the advantages that the mobile device service server automatically switches the instant message notification mode according to the execution and connection state of the financial commodity transaction mobile software of the mobile device, so that the instant message generated by the mobile device service server can be safely leaked. The financial commodity trading software that is transmitted to the mobile device does achieve the efficacy and purpose of the present invention.

在本發明被詳細描述之前,應當注意在以下的說明內容中,類似的元件是以相同的編號來表示。Before the present invention is described in detail, it should be noted that in the following description, similar elements are denoted by the same reference numerals.

參閱圖1與圖2,是本發明依金融商品交易行動軟體的執行與連線狀況自動切換即時訊息通知模式的方法的一實施例,其中該金融商品交易行動軟體10(以下簡稱行動APP)安裝於一行動裝置1,且一提供金融商品交易服務的行動裝置服務伺服端2(以下簡稱伺服端2)用以透過網路3提供一即時訊息給行動裝置1的行動APP,使將該即時訊息呈現於行動裝置1的輸出介面(圖未示),例如顯示器/或震動/或LED閃燈/或其他穿戴裝置/或揚聲器(喇叭)等等(不僅限於所述)。其中伺服端2主要讓使用者藉由行動APP登入以提供金融服務、客戶服務、金融商品資訊提供等。Referring to FIG. 1 and FIG. 2, an embodiment of a method for automatically switching an instant message notification mode according to the execution and connection status of the financial commodity transaction software of the present invention, wherein the financial commodity transaction software 10 (hereinafter referred to as an action APP) is installed In the mobile device 1, a mobile device service server 2 (hereinafter referred to as the server 2) for providing a financial commodity transaction service is used to provide an instant message to the mobile APP 3 via the network 3, so that the instant message is provided. Presented in the output interface (not shown) of the mobile device 1, such as a display / / vibration / or LED flash / / other wearable devices / or speakers (horns), etc. (not limited to the description). The server 2 mainly allows the user to log in through the mobile APP to provide financial services, customer service, financial product information, and the like.

且在本實施例中,伺服端2是依行動APP10的執行與連線狀況,自動選擇常態性連線模式或離線推播模式來傳送即時訊息,其中常態性連線模式是指當行動裝置1的行動APP10與伺服端2建立常態性固定網路連線時,伺服端2的一第一伺服器21將透過此一預先建立的網路即時傳送即時訊息給行動裝置1的行動APP10;而離線推播模式則是當行動裝置1的行動APP10與伺服端2未建立常態性固定網路連線時,由伺服端2的一第二伺服器22透過網路上的一推播伺服器4將即時訊息推送到行動裝置1的行動APP。特別一提的是,上述第一伺服器21與第二伺服器22可以被整合安裝於伺服端2的一主機或分別安裝於伺服端2的不同主機中。In this embodiment, the server 2 automatically selects a normal connection mode or an offline push mode to transmit an instant message according to the execution and connection status of the mobile APP 10. The normal connection mode refers to when the mobile device 1 When the action APP 10 establishes a normal fixed network connection with the server 2, a first server 21 of the server 2 transmits an instant message to the mobile APP 10 of the mobile device 1 through the pre-established network; In the push mode, when the mobile APP 10 of the mobile device 1 and the server 2 do not establish a normal fixed network connection, a second server 22 of the server 2 transmits an instant through a push server 4 on the network. The message is pushed to the action APP of the mobile device 1. In particular, the first server 21 and the second server 22 may be integrated into a host of the server 2 or installed in different hosts of the server 2 respectively.

且為了能以離線推播模式來傳達即時訊息,本實施例的行動裝置1在安裝行動APP10之後,第一次執行行動APP10時,行動APP10會自動連上推播伺服器4,並提供行動裝置1的一相關資訊(包含例如行動裝置1的使用者資料及/或一手機號碼等)向推播伺服器4進行註冊,以獲得推播伺服器4提供的一推播識別碼。然後,行動APP10再向伺服端2的第二伺服器22(或是經由第一伺服器21,端看行動APP10是採單連線或是雙連線)進行註冊,並提供該推播識別碼給第二伺服器22。此外,由於行動APP10是在行動裝置1的作業系統11環境底下運作,若行動APP10要在非運作期間也能夠收到即時訊息,就必須仰賴作業系統11的支援,因此,行動APP10還需提供該推播識別碼給行動裝置1的作業系統11,以向作業系統11註冊一推播通知。且上述的推播伺服器4可以是現有的Google雲端訊息(Google Cloud Messaging,簡稱GCM)連結伺服器或Apple推播通知服務(Apple Push Notification Service,簡稱APNs)伺服器,但不以此為限,且由於上述的註冊流程是已知技術,且非本發明重點,故在此不予詳述。In order to be able to communicate the instant message in the offline push mode, the mobile device 10 of the present embodiment automatically connects to the push server 4 and provides the mobile device when the action APP 10 is executed for the first time after the action APP 10 is installed. A related information (including, for example, user data of the mobile device 1 and/or a mobile phone number, etc.) is registered with the push server 4 to obtain a push identification code provided by the push server 4. Then, the action APP 10 registers with the second server 22 of the server 2 (or via the first server 21, the mobile APP 10 is a single connection or a dual connection), and provides the push identification code. The second server 22 is given. In addition, since the mobile APP 10 operates under the environment of the operating system 11 of the mobile device 1, if the mobile APP 10 is to receive an instant message during the non-operational period, it must rely on the support of the operating system 11, and therefore, the mobile APP 10 is required to provide the same. The identification code is pushed to the operating system 11 of the mobile device 1 to register a push notification with the operating system 11. The above-mentioned push server 4 may be an existing Google Cloud Messaging (GCM) link server or an Apple Push Notification Service (APNs) server, but not limited thereto. Since the above registration process is a known technique and is not the focus of the present invention, it will not be described in detail herein.

藉此,當伺服端2要傳送一即時訊息給行動裝置1的行動APP時,如圖1的步驟S1所示,伺服端2的第一伺服器21會先判斷其與行動裝置1的行動APP是否已建立常態性連線,若是,表示行動APP處於啟動與執行狀態,則第一伺服器21採用常態性連線模式,如圖1的步驟S2所示,將伺服端2產生的即時訊息透過已建立的網路連線直接傳送給行動APP,使行動APP於行動裝置1呈現即時訊息。Therefore, when the server 2 wants to transmit an instant message to the action APP of the mobile device 1, as shown in step S1 of FIG. 1, the first server 21 of the server 2 first determines its action APP with the mobile device 1. Whether the normal connection has been established, if yes, indicating that the mobile APP is in the startup and execution state, the first server 21 adopts the normal connection mode, as shown in step S2 of FIG. 1, the instant message generated by the server 2 is transmitted through The established network connection is directly transmitted to the mobile APP, so that the mobile APP presents an instant message to the mobile device 1.

而在上述步驟S1中,若第一伺服器21判斷其與行動裝置1的行動APP並未建立連線,其判定行動APP處於未啟動與未執行狀態,則如步驟S3所示,令伺服端2的第二伺服器22採離線推播模式,將該即時訊息與行動裝置1的該推播識別碼傳送至網路上的推播伺服器4,則如圖1的步驟S4,推播伺服器4將根據該推播識別碼,將該即時訊息傳送給與推播識別碼對應的行動裝置1,則當行動裝置1的作業系統11收到該即時訊息後,即根據行動APP註冊的該推播通知,通知行動APP已收到該即時訊息,行動APP則從作業糸統11取得該即時訊息並將其呈現在行動裝置1的輸出介面上。In the above step S1, if the first server 21 determines that it has not established a connection with the mobile APP of the mobile device 1, it determines that the action APP is in an unactivated and unexecuted state, and as shown in step S3, the server is enabled. The second server 22 of the second server 22 adopts an offline push mode, and transmits the instant message and the push identification code of the mobile device 1 to the push server 4 on the network, and then pushes the server according to step S4 of FIG. 4, according to the push identification code, the instant message is transmitted to the mobile device 1 corresponding to the push broadcast identification code, and when the operating system 11 of the mobile device 1 receives the instant message, the push is registered according to the action APP. The notification is notified that the mobile APP has received the instant message, and the mobile APP obtains the instant message from the operating system 11 and presents it on the output interface of the mobile device 1.

且在上述步驟S2中,當行動APP收到即時訊息後,如步驟S5所示,行動APP會經由已建立的網路連線回傳一確收訊息給第一伺服器21,故第一伺服器21在送出即時訊息後,會於一預設時間內等待行動APP回傳的該確收訊息。因此,如圖1的步驟S6所示,第一伺服器21會判斷於該預設時間內是否有收到該確收訊息,若是,則第一伺服器21判定行動裝置1的行動APP仍與其建立常態性連線,則持續採用常態性連線模式,如圖1的步驟S2所示,將伺服端2產生的即時訊息透過已建立的網路連線直接傳送給行動APP;而若第一伺服器21未於該預設時間內收到該確收訊息時,第一伺器21判定行動APP可能與其斷線或已處於非啟動與非執行狀態,則如圖1的步驟S7所示,令第二伺服器22採離線推播模式,再次將該即時訊息與行動裝置1的該推播識別碼傳送至推播伺服器4,且如圖1的步驟S8所示,由推播伺服器4根據該推播識別碼,將該即時訊息再次傳送給行動裝置1。此外,第一伺服器21與第二伺服器22還可橫向擴展為多台相同功能之伺服器主機(即多個伺服端2)。In the above step S2, after the action APP receives the instant message, as shown in step S5, the action APP returns an acknowledgement message to the first server 21 via the established network connection, so the first servo After sending the instant message, the device 21 waits for the acknowledgement message returned by the action APP within a preset time. Therefore, as shown in step S6 of FIG. 1, the first server 21 determines whether the acknowledgement message is received within the preset time, and if so, the first server 21 determines that the mobile APP of the mobile device 1 is still After the normal connection is established, the normal connection mode is continuously used. As shown in step S2 of FIG. 1, the instant message generated by the server 2 is directly transmitted to the mobile APP through the established network connection; When the server 21 does not receive the acknowledgement message within the preset time, the first server 21 determines that the action APP may be disconnected or has been in a non-starting and non-executing state, as shown in step S7 of FIG. The second server 22 is caused to adopt the offline push mode, and the instant message and the push identification code of the mobile device 1 are again transmitted to the push server 4, and as shown in step S8 of FIG. 1, the push server is used. 4 transmitting the instant message to the mobile device 1 again based on the push identification code. In addition, the first server 21 and the second server 22 can also be laterally expanded into a plurality of server hosts of the same function (ie, a plurality of server terminals 2).

因此,由上述說明可知,當第一伺服器21判斷行動裝置1的行動APP與其建立連線時(即行動APP處於啟動與執行狀態時),則採用常態性連線模式將伺服端2產生的即時訊息傳送給行動APP,而當第一伺服器21判斷行動APP未與其建立連線(即斷線)或未於預設時間內收到行動APP的確收訊息時(即行動APP斷線或未處於啟動與執行狀態時),則令第二伺服器22採用離線推播模式將即時訊息推送給行動APP,藉此行動裝置1的使用者將不需自行設定行動APP要採用哪一種模式接收即時訊息,亦無須為了讓行動APP與伺服端2建立常態性連線,而讓行動APP一直處於啟動狀態,不但可以節省行動裝置1的電力與網路流量,並且藉由伺服端2根據行動裝置1的行動APP的啟動與執行狀態,自動切換即時訊息通知模式,使伺服端2產生的即時訊息能安全無漏地傳送至行動裝置1的行動APP,確實達成本發明之功效與目的。Therefore, as can be seen from the above description, when the first server 21 determines that the mobile APP of the mobile device 1 is connected to the mobile terminal (ie, when the mobile APP is in the startup and execution states), the servo terminal 2 is generated by the normal connection mode. The instant message is transmitted to the action APP, and when the first server 21 determines that the action APP has not established a connection with the mobile APP (ie, disconnected) or does not receive the acknowledgement message of the action APP within the preset time (ie, the action APP is disconnected or not When in the startup and execution state, the second server 22 is used to push the instant message to the mobile APP in the offline push mode, so that the user of the mobile device 1 does not need to set which mode the mobile APP adopts to receive the instant. The message does not need to establish a normal connection between the mobile APP and the server 2, and the mobile APP is always activated, which not only saves the power and network traffic of the mobile device 1, but also serves the mobile device 2 according to the mobile device 1 The activation and execution status of the action APP automatically switches the instant message notification mode, so that the instant message generated by the server 2 can be transmitted to the action APP of the mobile device 1 without fail. Ming effect and purpose.

惟以上所述者,僅為本發明之實施例而已,當不能以此限定本發明實施之範圍,凡是依本發明申請專利範圍及專利說明書內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。However, the above is only the embodiment of the present invention, and the scope of the invention is not limited thereto, and all the equivalent equivalent changes and modifications according to the scope of the patent application and the patent specification of the present invention are still The scope of the invention is covered.

1‧‧‧行動裝置
2‧‧‧行動裝置服務伺服端
3‧‧‧網路
4‧‧‧推播伺服器
10‧‧‧金融商品交易行動軟體
11‧‧‧作業系統
21‧‧‧第一伺服器
22‧‧‧第二伺服器
S1~S8‧‧‧步驟
1‧‧‧ mobile device
2‧‧‧Mobile device service server
3‧‧‧Network
4‧‧‧Pushing server
10‧‧‧Financial Commodity Trading Action Software
11‧‧‧Operating system
21‧‧‧First server
22‧‧‧Second server
S1~S8‧‧‧Steps

本發明之其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中: 圖1顯示本發明依金融商品交易行動軟體的執行與連線狀況自動切換即時訊息通知模式的方法的一實施例的主要流程圖;及 圖2顯示本發明行動裝置服務伺服端的一實施例透過網路及推播伺服器與行動裝置通訊的示意圖;Other features and effects of the present invention will be apparent from the following description of the drawings, wherein: FIG. 1 shows a method of the present invention for automatically switching the instant message notification mode according to the execution and connection status of the financial commodity trading software. A main flowchart of an embodiment; and FIG. 2 is a schematic diagram showing an embodiment of a mobile device service server of the present invention communicating with a mobile device through a network and a push server;

Claims (10)

一種依金融商品交易行動軟體的執行與連線狀況自動切換即時訊息通知模式的方法,該金融商品交易行動軟體安裝於一行動裝置,以接收由一提供金融商品交易服務的行動裝置服務伺服端經由網路提供的一即時訊息,並將該即時訊息呈現於該行動裝置;該方法包括: (A) 該行動裝置服務伺服端的一第一伺服器判定其與該金融商品交易行動軟體處於連線狀態時,該第一伺服器將該即時訊息透過網路傳送給該金融商品交易行動軟體,並等待該金融商品交易行動軟體回傳一確收訊息;及 (B) 該第一伺服器於一預設時間內未收到該確收訊息時,其令該行動裝置服務伺服端的一第二伺服器將該即時訊息與該行動裝置的一推播識別碼傳送至網路上的一推播伺服器,使該推播伺服器根據該推播識別碼,將該即時訊息傳送給該金融商品交易行動軟體。A method for automatically switching an instant message notification mode according to execution and connection status of a financial commodity transaction software, the financial commodity transaction software being installed in a mobile device to receive a mobile device service server provided by a financial commodity transaction service An instant message provided by the network and presenting the instant message to the mobile device; the method comprising: (A) the first server of the mobile device service server determines that it is in connection with the financial commodity transaction software At the time, the first server transmits the instant message to the financial commodity transaction software via the network, and waits for the financial commodity transaction software to return an acknowledgement message; and (B) the first server is in a pre- When the acknowledgement message is not received within the set time, the second server of the mobile device service server transmits the instant message and a push identification code of the mobile device to a push server on the network. And causing the push server to transmit the instant message to the financial commodity transaction software according to the push identification code. 如請求項1所述依金融商品交易行動軟體的執行與連線狀況自動切換即時訊息通知模式的方法,在步驟(A)中,當該第一伺服器判定其與該金融商品交易行動軟體處於未連線狀態時,其令該第二伺服器將該即時訊息與該行動裝置的該推播識別碼傳送至網路上的該推播伺服器,使該推播伺服器根據該推播識別碼,將該即時訊息傳送給該金融商品交易行動軟體。The method for automatically switching the instant message notification mode according to the execution and connection status of the financial commodity transaction software according to claim 1, in step (A), when the first server determines that it is in the transaction software with the financial commodity transaction In the unconnected state, the second server transmits the instant message and the push identification code of the mobile device to the push server on the network, so that the push server according to the push broadcast identifier Transmitting the instant message to the financial commodity trading software. 如請求項1所述依金融商品交易行動軟體的執行與連線狀況自動切換即時訊息通知模式的方法,其中該金融商品交易行動軟體於該行動裝置上第一次被執行時,該金融商品交易行動軟體自動連上該推播伺服器,並於該推播伺服器註冊以獲得該推播識別碼,該金融商品交易行動軟體再自動連上該第二伺服器,或經由該第一伺服器連上該第二伺服器,並於該第二伺服器註冊且提供該推播識別碼給該第二伺服器。The method for automatically switching an instant message notification mode according to the execution and connection status of the financial commodity transaction software according to claim 1, wherein the financial commodity transaction software is executed for the first time on the mobile device, the financial commodity transaction The mobile software automatically connects to the push server and registers with the push server to obtain the push identification code, and the financial commodity transaction software is automatically connected to the second server or via the first server. The second server is connected, and the second server is registered and the push identification code is provided to the second server. 如請求項3所述依金融商品交易行動軟體的執行與連線狀況自動切換即時訊息通知模式的方法,其中該金融商品交易行動軟體還提供該推播識別碼給該行動裝置的作業系統,以向該作業系統註冊一推播通知,且在步驟(B)中,該即時訊息被該行動裝置接收後,再由該行動裝置的該作業系統根據該推播通知提供給該金融商品交易行動軟體。The method for automatically switching the instant message notification mode according to the execution and connection status of the financial commodity transaction software according to claim 3, wherein the financial commodity transaction software further provides the push identification code to the operating system of the mobile device, Registering a push notification with the operating system, and in step (B), the instant message is received by the mobile device, and then the operating system of the mobile device provides the financial product transaction software according to the push notification. . 如請求項1至4其中任一所述依金融商品交易行動軟體的執行與連線狀況自動切換即時訊息通知模式的方法,其中該推播伺服器是Google雲端訊息連結伺服器或Apple推播通知服務伺服器。The method for automatically switching an instant message notification mode according to any one of the claims 1 to 4 according to the execution and connection status of the financial commodity transaction software, wherein the push server is a Google cloud message link server or an Apple push notification Service server. 如請求項1所述依金融商品交易行動軟體的執行與連線狀況自動切換即時訊息通知模式的方法,其中該第一伺服器與該第二伺服器是整合安裝於該行動裝置服務伺服端的一主機或分別安裝於該行動裝置服務伺服端的不同主機。The method for automatically switching the instant message notification mode according to the execution and connection status of the financial commodity transaction software according to claim 1, wherein the first server and the second server are integrated and installed on the server of the mobile device service. The host or different hosts respectively installed on the server of the mobile device service. 一種行動裝置服務伺服端,其能與網路上的一推播伺服器通訊,並且透過網路提供一即時訊息給安裝於一行動裝置的一金融商品交易行動軟體,使將該即時訊息呈現於該行動裝置;該行動裝置服務伺服端包括: 一第一伺服器,其判定與該金融商品交易行動軟體處於連線狀態時,將該即時訊息透過網路傳送給該金融商品交易行動軟體,並等待該金融商品交易行動軟體回傳一確收訊息;及 一第二伺服器,其在該第一伺服器於一預設時間內未收到該確收訊息時,將該即時訊息與該行動裝置的一推播識別碼傳送至該推播伺服器,使該推播伺服器根據該推播識別碼,將該即時訊息傳送給該金融商品交易行動軟體。A mobile device service server capable of communicating with a push server on the network and providing an instant message to a financial commodity transaction software installed on a mobile device via the network, so that the instant message is presented to the server The mobile device service server includes: a first server, when determining that the financial product transaction software is in a connected state, transmitting the instant message to the financial commodity transaction software via the network, and waiting The financial commodity transaction software returns a confirmation message; and a second server that synchronizes the instant message with the mobile device when the first server does not receive the acknowledgement message within a predetermined time The push broadcast identification code is transmitted to the push broadcast server, so that the push broadcast server transmits the instant message to the financial commodity transaction action software according to the push broadcast identification code. 如請求項7所述的行動裝置服務伺服端,其中該第一伺服器判定其與該金融商品交易行動軟體處於未連線狀態時,則令該第二伺服器將該即時訊息與該行動裝置的該推播識別碼傳送至網路上的該推播伺服器,使該推播伺服器根據該推播識別碼,將該即時訊息傳送給該金融商品交易行動軟體。The mobile device service server of claim 7, wherein the first server determines that the second server is in an unconnected state with the financial commodity transaction software, and causes the second server to associate the instant message with the mobile device. The push identification code is transmitted to the push server on the network, so that the push server transmits the instant message to the financial commodity transaction software according to the push identification code. 如請求項7所述的行動裝置服務伺服端,其中該推播識別碼是該金融商品交易行動軟體向該推播伺服器註冊而獲得,且該推播識別碼是該金融商品交易行動軟體直接或透過該第一伺服器向該第二伺服器註冊時,提供給該第二伺服器。The mobile device service server according to claim 7, wherein the push identification code is obtained by registering the financial commodity transaction software with the push server, and the push identification code is directly used by the financial commodity transaction software. Or when the first server registers with the second server, it is provided to the second server. 如請求項7所述的行動裝置服務伺服端,其中該第一伺服器與該第二伺服器是整合安裝於該行動裝置服務伺服端的一主機或分別安裝於該行動裝置服務伺服端的不同主機。The mobile device service server according to claim 7, wherein the first server and the second server are integrated with a host installed on the mobile device service server or different hosts respectively installed on the mobile device service server.
TW105104404A 2016-02-16 2016-02-16 Method for automatic switching the instant message notification mode according to the execution and connection status of the financial commodity transaction software, and the mobile device service server TWI627596B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW105104404A TWI627596B (en) 2016-02-16 2016-02-16 Method for automatic switching the instant message notification mode according to the execution and connection status of the financial commodity transaction software, and the mobile device service server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW105104404A TWI627596B (en) 2016-02-16 2016-02-16 Method for automatic switching the instant message notification mode according to the execution and connection status of the financial commodity transaction software, and the mobile device service server

Publications (2)

Publication Number Publication Date
TW201730830A TW201730830A (en) 2017-09-01
TWI627596B true TWI627596B (en) 2018-06-21

Family

ID=60479872

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105104404A TWI627596B (en) 2016-02-16 2016-02-16 Method for automatic switching the instant message notification mode according to the execution and connection status of the financial commodity transaction software, and the mobile device service server

Country Status (1)

Country Link
TW (1) TWI627596B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201436589A (en) * 2013-03-08 2014-09-16 Ich Tech Co Ltd Mobile device identity authentication and designated target message push method
US20160005301A1 (en) * 2013-02-21 2016-01-07 Vdt Direct Ltd Alarm notification system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160005301A1 (en) * 2013-02-21 2016-01-07 Vdt Direct Ltd Alarm notification system
TW201436589A (en) * 2013-03-08 2014-09-16 Ich Tech Co Ltd Mobile device identity authentication and designated target message push method

Also Published As

Publication number Publication date
TW201730830A (en) 2017-09-01

Similar Documents

Publication Publication Date Title
US10411971B2 (en) Method for unified communication of server, baseboard management controller, and server
WO2017092347A1 (en) Method, device and system for updating client configuration in memcached system
WO2019134306A1 (en) Message processing method, device, terminal apparatus, and readable storage medium
TW201944236A (en) Task processing method, apparatus, and system
EP3489825A1 (en) Method, apparatus and computer readable storage medium for processing service
KR20150120482A (en) Method, device and system for establishing data connection
US8959534B2 (en) Enabling legacy applications to achieve end-to-end communication with corresponding legacy device services
CN108076007A (en) A kind of implementation method of interface, device and equipment
US20160337467A1 (en) Method and system for information exchange utilizing an asynchronous persistent store protocol
EP4030776A1 (en) Method and apparatus for triggering vomci function from olt to send omci messages
CN107341059A (en) A kind of wechat public number concurrent message treatment mechanism
JP6509344B2 (en) Method and apparatus for detecting tag exchange path connectivity
JP2018505572A (en) Video communication termination method and apparatus
CN106657076B (en) TCP service implementation method and device for network name space
TWI627596B (en) Method for automatic switching the instant message notification mode according to the execution and connection status of the financial commodity transaction software, and the mobile device service server
CN114157725B (en) Method, device, server, electronic equipment and storage medium for equipment linkage
CN106708881A (en) Interaction method and device based on network file system
US9078282B2 (en) Method and apparatus for implementing network device function of wireless communication terminal
CN114884805A (en) Data transmission method, device, terminal and storage medium
CN103973485A (en) Operation and maintenance management system and method based on fixed ports
CN110855530B (en) Method for assisting detection of RS232 serial interface communication link
KR20120128031A (en) System and method for providing push service
WO2016015614A1 (en) Ciphertext sending method, ciphertext transmission method, mobile terminal and communication base station
CN108174458B (en) Method and device for wireless connection between mobile terminal and wearable device, mobile terminal and wearable device
CN105119927A (en) Message sending, receiving method and terminal and message sending system